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: PartialEq + Ip> StructuralPartialEq for Event<I>
Source§impl TryFrom<EventV4> for Event<Ipv4>
impl TryFrom<EventV4> for Event<Ipv4>
Source§type Error = FidlConversionError<InstalledRouteRequiredFields>
type Error = FidlConversionError<InstalledRouteRequiredFields>
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl<I> Freeze for Event<I>where
InstalledRoute<I>: Freeze,
impl<I> RefUnwindSafe for Event<I>where
InstalledRoute<I>: RefUnwindSafe,
impl<I> Send for Event<I>where
InstalledRoute<I>: Send,
impl<I> Sync for Event<I>where
InstalledRoute<I>: Sync,
impl<I> Unpin for Event<I>where
InstalledRoute<I>: Unpin,
impl<I> UnsafeUnpin for Event<I>where
InstalledRoute<I>: UnsafeUnpin,
impl<I> UnwindSafe for Event<I>where
InstalledRoute<I>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<E> RunsTransport<Mpsc> for E
impl<E> RunsTransport<Mpsc> for Ewhere
E: RunsTransport<Mpsc>,
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.