pub enum EthernetTimerId<D: WeakDeviceIdentifier> {
Arp(NudTimerId<Ipv4, EthernetLinkDevice, D>),
Nudv6(NudTimerId<Ipv6, EthernetLinkDevice, D>),
}
Expand description
A timer ID for Ethernet devices.
D
is the type of device ID that identifies different Ethernet devices.
Variants§
Arp(NudTimerId<Ipv4, EthernetLinkDevice, D>)
Nudv6(NudTimerId<Ipv6, EthernetLinkDevice, D>)
Trait Implementations§
Source§impl<D: Clone + WeakDeviceIdentifier> Clone for EthernetTimerId<D>
impl<D: Clone + WeakDeviceIdentifier> Clone for EthernetTimerId<D>
Source§fn clone(&self) -> EthernetTimerId<D>
fn clone(&self) -> EthernetTimerId<D>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<D: Debug + WeakDeviceIdentifier> Debug for EthernetTimerId<D>
impl<D: Debug + WeakDeviceIdentifier> Debug for EthernetTimerId<D>
Source§impl<BT: DeviceLayerTypes> From<EthernetTimerId<BaseWeakDeviceId<EthernetLinkDevice, BT>>> for DeviceLayerTimerId<BT>
impl<BT: DeviceLayerTypes> From<EthernetTimerId<BaseWeakDeviceId<EthernetLinkDevice, BT>>> for DeviceLayerTimerId<BT>
Source§fn from(id: EthernetTimerId<EthernetWeakDeviceId<BT>>) -> DeviceLayerTimerId<BT>
fn from(id: EthernetTimerId<EthernetWeakDeviceId<BT>>) -> DeviceLayerTimerId<BT>
Converts to this type from the input type.
Source§impl<I: Ip, D: WeakDeviceIdentifier> From<NudTimerId<I, EthernetLinkDevice, D>> for EthernetTimerId<D>
impl<I: Ip, D: WeakDeviceIdentifier> From<NudTimerId<I, EthernetLinkDevice, D>> for EthernetTimerId<D>
Source§fn from(id: NudTimerId<I, EthernetLinkDevice, D>) -> EthernetTimerId<D>
fn from(id: NudTimerId<I, EthernetLinkDevice, D>) -> EthernetTimerId<D>
Converts to this type from the input type.
Source§impl<D: WeakDeviceIdentifier, IpType: Ip> GenericOverIp<IpType> for EthernetTimerId<D>
impl<D: WeakDeviceIdentifier, IpType: Ip> GenericOverIp<IpType> for EthernetTimerId<D>
Source§type Type = EthernetTimerId<D>
type Type = EthernetTimerId<D>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.Source§impl<CC, BC> HandleableTimer<CC, BC> for EthernetTimerId<CC::WeakDeviceId>where
BC: EthernetIpLinkDeviceBindingsContext,
CC: EthernetIpLinkDeviceDynamicStateContext<BC> + TimerHandler<BC, NudTimerId<Ipv6, EthernetLinkDevice, CC::WeakDeviceId>> + TimerHandler<BC, NudTimerId<Ipv4, EthernetLinkDevice, CC::WeakDeviceId>>,
impl<CC, BC> HandleableTimer<CC, BC> for EthernetTimerId<CC::WeakDeviceId>where
BC: EthernetIpLinkDeviceBindingsContext,
CC: EthernetIpLinkDeviceDynamicStateContext<BC> + TimerHandler<BC, NudTimerId<Ipv6, EthernetLinkDevice, CC::WeakDeviceId>> + TimerHandler<BC, NudTimerId<Ipv4, EthernetLinkDevice, CC::WeakDeviceId>>,
Source§impl<D: Hash + WeakDeviceIdentifier> Hash for EthernetTimerId<D>
impl<D: Hash + WeakDeviceIdentifier> Hash for EthernetTimerId<D>
Source§impl<D: PartialEq + WeakDeviceIdentifier> PartialEq for EthernetTimerId<D>
impl<D: PartialEq + WeakDeviceIdentifier> PartialEq for EthernetTimerId<D>
impl<D: Eq + WeakDeviceIdentifier> Eq for EthernetTimerId<D>
impl<D: WeakDeviceIdentifier> StructuralPartialEq for EthernetTimerId<D>
Auto Trait Implementations§
impl<D> Freeze for EthernetTimerId<D>where
D: Freeze,
impl<D> RefUnwindSafe for EthernetTimerId<D>where
D: RefUnwindSafe,
impl<D> Send for EthernetTimerId<D>
impl<D> Sync for EthernetTimerId<D>
impl<D> Unpin for EthernetTimerId<D>where
D: Unpin,
impl<D> UnwindSafe for EthernetTimerId<D>where
D: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> 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§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
Source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
Source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more