pub struct IcmpSockets<I: IpExt, D: WeakDeviceIdentifier, BT: IcmpEchoBindingsTypes> { /* private fields */ }
Expand description
Holds the stack’s ICMP echo sockets.
Trait Implementations§
Source§impl<I: IpExt, D: WeakDeviceIdentifier, BT: IcmpEchoBindingsTypes> Default for IcmpSockets<I, D, BT>
impl<I: IpExt, D: WeakDeviceIdentifier, BT: IcmpEchoBindingsTypes> Default for IcmpSockets<I, D, BT>
Source§impl<I: IpExt, D: WeakDeviceIdentifier, BT: IcmpEchoBindingsTypes, IpType> GenericOverIp<IpType> for IcmpSockets<I, D, BT>where
IpType: IpExt + Ip,
impl<I: IpExt, D: WeakDeviceIdentifier, BT: IcmpEchoBindingsTypes, IpType> GenericOverIp<IpType> for IcmpSockets<I, D, BT>where
IpType: IpExt + Ip,
Source§type Type = IcmpSockets<IpType, D, BT>
type Type = IcmpSockets<IpType, D, BT>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.Source§impl<I: IpExt, D: WeakDeviceIdentifier, BT: IcmpEchoBindingsTypes> OrderedLockAccess<BoundSockets<I, D, BT>> for IcmpSockets<I, D, BT>
impl<I: IpExt, D: WeakDeviceIdentifier, BT: IcmpEchoBindingsTypes> OrderedLockAccess<BoundSockets<I, D, BT>> for IcmpSockets<I, D, BT>
Source§type Lock = RwLock<BoundSockets<I, D, BT>>
type Lock = RwLock<BoundSockets<I, D, BT>>
The lock type that observes ordering. Read more
Source§fn ordered_lock_access(&self) -> OrderedLockRef<'_, Self::Lock>
fn ordered_lock_access(&self) -> OrderedLockRef<'_, Self::Lock>
Returns a borrow to the order-aware lock. Read more
Source§impl<I: IpExt, D: WeakDeviceIdentifier, BT: IcmpEchoBindingsTypes> OrderedLockAccess<DatagramSocketSet<I, D, Icmp<BT>>> for IcmpSockets<I, D, BT>
impl<I: IpExt, D: WeakDeviceIdentifier, BT: IcmpEchoBindingsTypes> OrderedLockAccess<DatagramSocketSet<I, D, Icmp<BT>>> for IcmpSockets<I, D, BT>
Source§type Lock = RwLock<DatagramSocketSet<I, D, Icmp<BT>>>
type Lock = RwLock<DatagramSocketSet<I, D, Icmp<BT>>>
The lock type that observes ordering. Read more
Source§fn ordered_lock_access(&self) -> OrderedLockRef<'_, Self::Lock>
fn ordered_lock_access(&self) -> OrderedLockRef<'_, Self::Lock>
Returns a borrow to the order-aware lock. Read more
Auto Trait Implementations§
impl<I, D, BT> !Freeze for IcmpSockets<I, D, BT>
impl<I, D, BT> RefUnwindSafe for IcmpSockets<I, D, BT>
impl<I, D, BT> Send for IcmpSockets<I, D, BT>
impl<I, D, BT> Sync for IcmpSockets<I, D, BT>
impl<I, D, BT> Unpin for IcmpSockets<I, D, BT>
impl<I, D, BT> UnwindSafe for IcmpSockets<I, D, BT>
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<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
impl<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
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