pub struct IpDeviceTimerId<I: IpDeviceIpExt, D: WeakDeviceIdentifier, A: IpAddressIdSpec>(/* private fields */);
Expand description
An IP device timer.
This timer is an indirection to the real types defined by the
IpDeviceIpExt
trait. Having a concrete type parameterized over IP allows
us to provide implementations generic on I for outer timer contexts that
handle IpDeviceTimerId
timers.
Trait Implementations§
Source§impl<I: IpDeviceIpExt, D: WeakDeviceIdentifier, A: IpAddressIdSpec> Clone for IpDeviceTimerId<I, D, A>
impl<I: IpDeviceIpExt, D: WeakDeviceIdentifier, A: IpAddressIdSpec> Clone for IpDeviceTimerId<I, D, A>
Source§impl<I: IpDeviceIpExt, D: WeakDeviceIdentifier, A: IpAddressIdSpec> Debug for IpDeviceTimerId<I, D, A>
impl<I: IpDeviceIpExt, D: WeakDeviceIdentifier, A: IpAddressIdSpec> Debug for IpDeviceTimerId<I, D, A>
Source§impl<D: WeakDeviceIdentifier, A: IpAddressIdSpec> From<IpDeviceTimerId<Ipv4, D, A>> for Ipv4DeviceTimerId<D>
impl<D: WeakDeviceIdentifier, A: IpAddressIdSpec> From<IpDeviceTimerId<Ipv4, D, A>> for Ipv4DeviceTimerId<D>
Source§fn from(IpDeviceTimerId: IpDeviceTimerId<Ipv4, D, A>) -> Self
fn from(IpDeviceTimerId: IpDeviceTimerId<Ipv4, D, A>) -> Self
Converts to this type from the input type.
Source§impl<D: WeakDeviceIdentifier, A: IpAddressIdSpec> From<IpDeviceTimerId<Ipv6, D, A>> for Ipv6DeviceTimerId<D, A::WeakV6>
impl<D: WeakDeviceIdentifier, A: IpAddressIdSpec> From<IpDeviceTimerId<Ipv6, D, A>> for Ipv6DeviceTimerId<D, A::WeakV6>
Source§fn from(IpDeviceTimerId: IpDeviceTimerId<Ipv6, D, A>) -> Self
fn from(IpDeviceTimerId: IpDeviceTimerId<Ipv6, D, A>) -> Self
Converts to this type from the input type.
Source§impl<D: WeakDeviceIdentifier, A: IpAddressIdSpec> From<Ipv4DeviceTimerId<D>> for IpDeviceTimerId<Ipv4, D, A>
impl<D: WeakDeviceIdentifier, A: IpAddressIdSpec> From<Ipv4DeviceTimerId<D>> for IpDeviceTimerId<Ipv4, D, A>
Source§fn from(value: Ipv4DeviceTimerId<D>) -> Self
fn from(value: Ipv4DeviceTimerId<D>) -> Self
Converts to this type from the input type.
Source§impl<D: WeakDeviceIdentifier, A: IpAddressIdSpec> From<Ipv6DeviceTimerId<D, <A as IpAddressIdSpec>::WeakV6>> for IpDeviceTimerId<Ipv6, D, A>
impl<D: WeakDeviceIdentifier, A: IpAddressIdSpec> From<Ipv6DeviceTimerId<D, <A as IpAddressIdSpec>::WeakV6>> for IpDeviceTimerId<Ipv6, D, A>
Source§fn from(value: Ipv6DeviceTimerId<D, A::WeakV6>) -> Self
fn from(value: Ipv6DeviceTimerId<D, A::WeakV6>) -> Self
Converts to this type from the input type.
Source§impl<I: IpDeviceIpExt, D: WeakDeviceIdentifier, A: IpAddressIdSpec, IpType> GenericOverIp<IpType> for IpDeviceTimerId<I, D, A>where
IpType: IpDeviceIpExt + Ip,
impl<I: IpDeviceIpExt, D: WeakDeviceIdentifier, A: IpAddressIdSpec, IpType> GenericOverIp<IpType> for IpDeviceTimerId<I, D, A>where
IpType: IpDeviceIpExt + Ip,
Source§type Type = IpDeviceTimerId<IpType, D, A>
type Type = IpDeviceTimerId<IpType, D, A>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.Source§impl<I, CC, BC, A> HandleableTimer<CC, BC> for IpDeviceTimerId<I, CC::WeakDeviceId, A>where
I: IpDeviceIpExt,
BC: IpDeviceBindingsContext<I, CC::DeviceId>,
CC: IpDeviceConfigurationContext<I, BC>,
A: IpAddressIdSpec,
for<'a> CC::WithIpDeviceConfigurationInnerCtx<'a>: TimerHandler<BC, I::Timer<CC::WeakDeviceId, A>>,
impl<I, CC, BC, A> HandleableTimer<CC, BC> for IpDeviceTimerId<I, CC::WeakDeviceId, A>where
I: IpDeviceIpExt,
BC: IpDeviceBindingsContext<I, CC::DeviceId>,
CC: IpDeviceConfigurationContext<I, BC>,
A: IpAddressIdSpec,
for<'a> CC::WithIpDeviceConfigurationInnerCtx<'a>: TimerHandler<BC, I::Timer<CC::WeakDeviceId, A>>,
Source§impl<I: IpDeviceIpExt, D: WeakDeviceIdentifier, A: IpAddressIdSpec> Hash for IpDeviceTimerId<I, D, A>
impl<I: IpDeviceIpExt, D: WeakDeviceIdentifier, A: IpAddressIdSpec> Hash for IpDeviceTimerId<I, D, A>
Source§impl<I: IpDeviceIpExt, D: WeakDeviceIdentifier, A: IpAddressIdSpec> PartialEq for IpDeviceTimerId<I, D, A>
impl<I: IpDeviceIpExt, D: WeakDeviceIdentifier, A: IpAddressIdSpec> PartialEq for IpDeviceTimerId<I, D, A>
impl<I: IpDeviceIpExt, D: WeakDeviceIdentifier, A: IpAddressIdSpec> Eq for IpDeviceTimerId<I, D, A>
Auto Trait Implementations§
impl<I, D, A> Freeze for IpDeviceTimerId<I, D, A>
impl<I, D, A> RefUnwindSafe for IpDeviceTimerId<I, D, A>
impl<I, D, A> Send for IpDeviceTimerId<I, D, A>
impl<I, D, A> Sync for IpDeviceTimerId<I, D, A>
impl<I, D, A> Unpin for IpDeviceTimerId<I, D, A>
impl<I, D, A> UnwindSafe for IpDeviceTimerId<I, D, A>
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