pub enum Event<I: Ip> {
Unknown,
Existing(InstalledRoute<I>),
Idle,
Added(InstalledRoute<I>),
Removed(InstalledRoute<I>),
}
Expand description
An event reported to the watcher, abstracting over
fnet_routes::EventV4
and fnet_routes::EventV6`.
These fidl types are both defined as flexible unions, which allows the
definition to grow over time. The Unknown
enum variant accounts for any
new types that are not yet known to the local version of the FIDL bindings.
Variants§
Unknown
An unknown event.
Existing(InstalledRoute<I>)
A route that existed prior to watching.
Idle
Sentinel value indicating no more existing
events will be received.
Added(InstalledRoute<I>)
A route that was added while watching.
Removed(InstalledRoute<I>)
A route that was removed while watching.
Trait Implementations§
impl<I: Copy + Ip> Copy for Event<I>
impl<I: Ip> StructuralPartialEq for Event<I>
Auto Trait Implementations§
impl<I> Freeze for Event<I>
impl<I> RefUnwindSafe for Event<I>
impl<I> Send for Event<I>
impl<I> Sync for Event<I>
impl<I> Unpin for Event<I>
impl<I> UnwindSafe for Event<I>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
impl<T, U> TryIntoExt<U> for Twhere
U: TryFromExt<T>,
type Error = <U as TryFromExt<T>>::Error
Source§fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
fn try_into_ext(self) -> Result<U, <T as TryIntoExt<U>>::Error>
Tries to perform the conversion.