pub struct RawIpSocketState<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> { /* private fields */ }
Expand description
State held by a raw IP socket.
Implementations§
Source§impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> RawIpSocketState<I, D, BT>
impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> RawIpSocketState<I, D, BT>
Sourcepub fn counters(&self) -> &RawIpSocketCounters<I>
pub fn counters(&self) -> &RawIpSocketCounters<I>
Get the counters for this socket.
Trait Implementations§
Source§impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> OrderedLockAccess<RawIpSocketLockedState<I, D>> for RawIpSocketState<I, D, BT>
impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> OrderedLockAccess<RawIpSocketLockedState<I, D>> for RawIpSocketState<I, D, BT>
Source§type Lock = RwLock<RawIpSocketLockedState<I, D>>
type Lock = RwLock<RawIpSocketLockedState<I, D>>
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 RawIpSocketState<I, D, BT>
impl<I, D, BT> RefUnwindSafe for RawIpSocketState<I, D, BT>where
<BT as RawIpSocketsBindingsTypes>::RawIpSocketState<I>: RefUnwindSafe,
<I as IpProtoExt>::Proto: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, D, BT> Send for RawIpSocketState<I, D, BT>
impl<I, D, BT> Sync for RawIpSocketState<I, D, BT>
impl<I, D, BT> Unpin for RawIpSocketState<I, D, BT>where
<BT as RawIpSocketsBindingsTypes>::RawIpSocketState<I>: Unpin,
<I as IpProtoExt>::Proto: Unpin,
I: Unpin,
D: Unpin,
impl<I, D, BT> UnwindSafe for RawIpSocketState<I, D, BT>where
<BT as RawIpSocketsBindingsTypes>::RawIpSocketState<I>: UnwindSafe,
<I as IpProtoExt>::Proto: UnwindSafe,
I: 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<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