Enum netstack3_core::device::WeakDeviceId
source · pub enum WeakDeviceId<C: DeviceLayerTypes> {
Ethernet(EthernetWeakDeviceId<C>),
Loopback(LoopbackWeakDeviceId<C>),
}
Expand description
A weak ID identifying a device.
This device ID makes no claim about the live-ness of the underlying device.
See DeviceId
for a device ID that acts as a witness to the live-ness of
a device.
Variants§
Ethernet(EthernetWeakDeviceId<C>)
Loopback(LoopbackWeakDeviceId<C>)
Implementations§
source§impl<C: DeviceLayerTypes> WeakDeviceId<C>
impl<C: DeviceLayerTypes> WeakDeviceId<C>
sourcepub fn debug_references(&self) -> DebugReferences<C>
pub fn debug_references(&self) -> DebugReferences<C>
Creates a DebugReferences
instance for this device.
Trait Implementations§
source§impl<C: DeviceLayerTypes> Clone for WeakDeviceId<C>
impl<C: DeviceLayerTypes> Clone for WeakDeviceId<C>
source§impl<C: DeviceLayerTypes> Debug for WeakDeviceId<C>
impl<C: DeviceLayerTypes> Debug for WeakDeviceId<C>
source§impl<C: DeviceLayerTypes> From<EthernetWeakDeviceId<C>> for WeakDeviceId<C>
impl<C: DeviceLayerTypes> From<EthernetWeakDeviceId<C>> for WeakDeviceId<C>
source§fn from(id: EthernetWeakDeviceId<C>) -> WeakDeviceId<C>
fn from(id: EthernetWeakDeviceId<C>) -> WeakDeviceId<C>
Converts to this type from the input type.
source§impl<C: DeviceLayerTypes> From<LoopbackWeakDeviceId<C>> for WeakDeviceId<C>
impl<C: DeviceLayerTypes> From<LoopbackWeakDeviceId<C>> for WeakDeviceId<C>
source§fn from(id: LoopbackWeakDeviceId<C>) -> WeakDeviceId<C>
fn from(id: LoopbackWeakDeviceId<C>) -> WeakDeviceId<C>
Converts to this type from the input type.
source§impl<C: DeviceLayerTypes> Hash for WeakDeviceId<C>
impl<C: DeviceLayerTypes> Hash for WeakDeviceId<C>
source§impl<C: DeviceLayerTypes> PartialEq<DeviceId<C>> for WeakDeviceId<C>
impl<C: DeviceLayerTypes> PartialEq<DeviceId<C>> for WeakDeviceId<C>
source§impl<C: DeviceLayerTypes> PartialEq<WeakDeviceId<C>> for DeviceId<C>
impl<C: DeviceLayerTypes> PartialEq<WeakDeviceId<C>> for DeviceId<C>
source§fn eq(&self, other: &WeakDeviceId<C>) -> bool
fn eq(&self, other: &WeakDeviceId<C>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<C: DeviceLayerTypes> PartialEq<WeakDeviceId<C>> for WeakDeviceId<C>
impl<C: DeviceLayerTypes> PartialEq<WeakDeviceId<C>> for WeakDeviceId<C>
impl<C: DeviceLayerTypes> Eq for WeakDeviceId<C>
Auto Trait Implementations§
impl<C> RefUnwindSafe for WeakDeviceId<C>where <C as DeviceLayerStateTypes>::EthernetDeviceState: RefUnwindSafe, <C as DeviceLayerStateTypes>::LoopbackDeviceState: RefUnwindSafe,
impl<C> Send for WeakDeviceId<C>
impl<C> Sync for WeakDeviceId<C>
impl<C> Unpin for WeakDeviceId<C>
impl<C> UnwindSafe for WeakDeviceId<C>where <C as DeviceLayerStateTypes>::EthernetDeviceState: RefUnwindSafe, <C as DeviceLayerStateTypes>::LoopbackDeviceState: RefUnwindSafe,
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