Enum netstack3_core::ip::IpLayerEvent
source · pub enum IpLayerEvent<DeviceId, I: Ip> {
RouteAdded(Entry<I::Addr, DeviceId>),
RouteRemoved(Entry<I::Addr, DeviceId>),
}
Expand description
Events observed at the IP layer.
Variants§
RouteAdded(Entry<I::Addr, DeviceId>)
A route was added.
RouteRemoved(Entry<I::Addr, DeviceId>)
A route was removed.
Trait Implementations§
source§impl<DeviceId: Debug, I: Debug + Ip> Debug for IpLayerEvent<DeviceId, I>where
I::Addr: Debug,
impl<DeviceId: Debug, I: Debug + Ip> Debug for IpLayerEvent<DeviceId, I>where I::Addr: Debug,
source§impl<DeviceId: PartialEq, I: PartialEq + Ip> PartialEq<IpLayerEvent<DeviceId, I>> for IpLayerEvent<DeviceId, I>where
I::Addr: PartialEq,
impl<DeviceId: PartialEq, I: PartialEq + Ip> PartialEq<IpLayerEvent<DeviceId, I>> for IpLayerEvent<DeviceId, I>where I::Addr: PartialEq,
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>where I::Addr: Eq,
impl<DeviceId, I: Ip> StructuralEq for IpLayerEvent<DeviceId, I>
impl<DeviceId, I: Ip> StructuralPartialEq for IpLayerEvent<DeviceId, I>
Auto Trait Implementations§
impl<DeviceId, I> RefUnwindSafe for IpLayerEvent<DeviceId, I>where DeviceId: RefUnwindSafe, <I as Ip>::Addr: RefUnwindSafe,
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>where DeviceId: Unpin, <I as Ip>::Addr: Unpin,
impl<DeviceId, I> UnwindSafe for IpLayerEvent<DeviceId, I>where 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