Enum netstack3_core::ip::IpLayerEvent
source · pub enum IpLayerEvent<DeviceId, I: Ip> {
AddRoute(AddableEntry<I::Addr, DeviceId>),
RemoveRoutes {
subnet: Subnet<I::Addr>,
device: DeviceId,
gateway: Option<SpecifiedAddr<I::Addr>>,
},
}
Expand description
Events observed at the IP layer.
Variants§
AddRoute(AddableEntry<I::Addr, DeviceId>)
A route needs to be added.
RemoveRoutes
Routes matching these specifiers need to be removed.
Trait Implementations§
source§impl<I: Ip> From<IpLayerEvent<DeviceId<FakeBindingsCtx>, I>> for DispatchedEvent
impl<I: Ip> From<IpLayerEvent<DeviceId<FakeBindingsCtx>, I>> for DispatchedEvent
source§fn from(e: IpLayerEvent<DeviceId<FakeBindingsCtx>, I>) -> DispatchedEvent
fn from(e: IpLayerEvent<DeviceId<FakeBindingsCtx>, I>) -> DispatchedEvent
Converts to this type from the input type.
source§impl<I: Ip> From<IpLayerEvent<DeviceId<FakeBindingsCtx>, I>> for IpLayerEvent<WeakDeviceId<FakeBindingsCtx>, I>
impl<I: Ip> From<IpLayerEvent<DeviceId<FakeBindingsCtx>, I>> for IpLayerEvent<WeakDeviceId<FakeBindingsCtx>, I>
source§fn from(
e: IpLayerEvent<DeviceId<FakeBindingsCtx>, I>
) -> IpLayerEvent<WeakDeviceId<FakeBindingsCtx>, I>
fn from( e: IpLayerEvent<DeviceId<FakeBindingsCtx>, I> ) -> IpLayerEvent<WeakDeviceId<FakeBindingsCtx>, I>
Converts to this type from the input type.
source§impl<DeviceId, I: Ip, IpType> GenericOverIp<IpType> for IpLayerEvent<DeviceId, I>where
IpType: Ip,
impl<DeviceId, I: Ip, IpType> GenericOverIp<IpType> for IpLayerEvent<DeviceId, I>where
IpType: Ip,
§type Type = IpLayerEvent<DeviceId, IpType>
type Type = IpLayerEvent<DeviceId, IpType>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.source§impl<DeviceId: PartialEq, I: PartialEq + Ip> PartialEq for IpLayerEvent<DeviceId, I>
impl<DeviceId: PartialEq, I: PartialEq + Ip> PartialEq for IpLayerEvent<DeviceId, I>
source§fn eq(&self, other: &IpLayerEvent<DeviceId, I>) -> bool
fn eq(&self, other: &IpLayerEvent<DeviceId, I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<DeviceId: Eq, I: Eq + Ip> Eq for IpLayerEvent<DeviceId, I>
impl<DeviceId, I: Ip> StructuralPartialEq for IpLayerEvent<DeviceId, I>
Auto Trait Implementations§
impl<DeviceId, I> RefUnwindSafe for IpLayerEvent<DeviceId, I>
impl<DeviceId, I> Send for IpLayerEvent<DeviceId, I>where
DeviceId: Send,
impl<DeviceId, I> Sync for IpLayerEvent<DeviceId, I>where
DeviceId: Sync,
impl<DeviceId, I> Unpin for IpLayerEvent<DeviceId, I>
impl<DeviceId, I> UnwindSafe for IpLayerEvent<DeviceId, 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