pub struct DeviceSockets<D, BT: DeviceSocketTypes>(/* private fields */);
Expand description
Per-device state for packet sockets.
Holds sockets that are bound to a particular device. An instance of this should be held in the state for each device in the system.
Trait Implementations§
Source§impl<D, BT: DeviceSocketTypes> Default for DeviceSockets<D, BT>
impl<D, BT: DeviceSocketTypes> Default for DeviceSockets<D, BT>
Source§impl<T, BT: DeviceLayerTypes> OrderedLockAccess<DeviceSockets<WeakDeviceId<BT>, BT>> for IpLinkDeviceStateInner<T, BT>
impl<T, BT: DeviceLayerTypes> OrderedLockAccess<DeviceSockets<WeakDeviceId<BT>, BT>> for IpLinkDeviceStateInner<T, BT>
Source§type Lock = RwLock<DeviceSockets<WeakDeviceId<BT>, BT>>
type Lock = RwLock<DeviceSockets<WeakDeviceId<BT>, 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<D, BT> Freeze for DeviceSockets<D, BT>
impl<D, BT> RefUnwindSafe for DeviceSockets<D, BT>
impl<D, BT> Send for DeviceSockets<D, BT>where
D: Send,
impl<D, BT> Sync for DeviceSockets<D, BT>where
D: Send,
impl<D, BT> Unpin for DeviceSockets<D, BT>
impl<D, BT> UnwindSafe for DeviceSockets<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