pub struct RawIpSocketId<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes>(/* private fields */);
Expand description
Reference to the state of a live socket.
Implementations§
Source§impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> RawIpSocketId<I, D, BT>
impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> RawIpSocketId<I, D, BT>
Sourcepub fn external_state(&self) -> &BT::RawIpSocketState<I>
pub fn external_state(&self) -> &BT::RawIpSocketState<I>
Return the bindings state associated with this socket.
Sourcepub fn protocol(&self) -> &RawIpSocketProtocol<I>
pub fn protocol(&self) -> &RawIpSocketProtocol<I>
Return the protocol associated with this socket.
Sourcepub fn downgrade(&self) -> WeakRawIpSocketId<I, D, BT>
pub fn downgrade(&self) -> WeakRawIpSocketId<I, D, BT>
Downgrades this ID to a weak reference.
Sourcepub fn state(&self) -> &RawIpSocketState<I, D, BT>
pub fn state(&self) -> &RawIpSocketState<I, D, BT>
Gets the socket state.
Trait Implementations§
Source§impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> Clone for RawIpSocketId<I, D, BT>
impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> Clone for RawIpSocketId<I, D, BT>
Source§impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> Debug for RawIpSocketId<I, D, BT>
impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> Debug for RawIpSocketId<I, D, BT>
Source§impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes, IpType> GenericOverIp<IpType> for RawIpSocketId<I, D, BT>
impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes, IpType> GenericOverIp<IpType> for RawIpSocketId<I, D, BT>
Source§type Type = RawIpSocketId<IpType, D, BT>
type Type = RawIpSocketId<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: RawIpSocketsBindingsTypes> Hash for RawIpSocketId<I, D, BT>
impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> Hash for RawIpSocketId<I, D, BT>
Source§impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> PartialEq for RawIpSocketId<I, D, BT>
impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> PartialEq for RawIpSocketId<I, D, BT>
impl<I: IpExt, D: WeakDeviceIdentifier, BT: RawIpSocketsBindingsTypes> Eq for RawIpSocketId<I, D, BT>
Auto Trait Implementations§
impl<I, D, BT> Freeze for RawIpSocketId<I, D, BT>
impl<I, D, BT> RefUnwindSafe for RawIpSocketId<I, D, BT>where
<BT as RawIpSocketsBindingsTypes>::RawIpSocketState<I>: RefUnwindSafe,
<I as IpProtoExt>::Proto: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, D, BT> Send for RawIpSocketId<I, D, BT>
impl<I, D, BT> Sync for RawIpSocketId<I, D, BT>
impl<I, D, BT> Unpin for RawIpSocketId<I, D, BT>
impl<I, D, BT> UnwindSafe for RawIpSocketId<I, D, BT>where
<BT as RawIpSocketsBindingsTypes>::RawIpSocketState<I>: RefUnwindSafe,
<I as IpProtoExt>::Proto: RefUnwindSafe,
I: RefUnwindSafe,
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