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> Freeze for IpLayerEvent<DeviceId, I>
impl<DeviceId, I> RefUnwindSafe for IpLayerEvent<DeviceId, I>where
I: Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + 'static,
DeviceId: RefUnwindSafe,
<I as Ip>::Addr: RefUnwindSafe,
impl<DeviceId, I> Send for IpLayerEvent<DeviceId, I>
impl<DeviceId, I> Sync for IpLayerEvent<DeviceId, I>
impl<DeviceId, I> Unpin for IpLayerEvent<DeviceId, I>
impl<DeviceId, I> UnwindSafe for IpLayerEvent<DeviceId, I>where
I: Sealed + Sync + Send + PartialOrd + PartialEq + Ord + Hash + Eq + Default + Debug + Copy + Clone + 'static,
DeviceId: UnwindSafe,
<I as Ip>::Addr: 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<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>
source§impl<CC, BC, Meta> RecvFrameContext<BC, Meta> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<BC, Meta> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
source§impl<Meta, BC> SendableFrameMeta<FakeFrameCtx<Meta>, BC> for Meta
impl<Meta, BC> SendableFrameMeta<FakeFrameCtx<Meta>, BC> for Meta
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.