pub enum BoundSocketStateType<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> {
Listener {
state: ListenerState<I, D, S>,
sharing: S::SharingState,
},
Connected {
state: S::ConnState<I, D>,
sharing: S::SharingState,
},
}
Expand description
State for the sub-types of bound socket (e.g. Listener or Connected).
Variants§
Trait Implementations§
source§impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<I, D, S>> for BoundSocketStateType<I, D, S>
impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<I, D, S>> for BoundSocketStateType<I, D, S>
source§impl<I: IpExt, D, S: DatagramSocketSpec> Debug for BoundSocketStateType<I, D, S>where
D: Debug + WeakDeviceIdentifier,
impl<I: IpExt, D, S: DatagramSocketSpec> Debug for BoundSocketStateType<I, D, S>where
D: Debug + WeakDeviceIdentifier,
Auto Trait Implementations§
impl<I, D, S> Freeze for BoundSocketStateType<I, D, S>where
<I as DualStackIpExt>::OtherVersion: Sized,
<S as DatagramSocketSpec>::SharingState: Freeze,
<S as DatagramSocketSpec>::ConnState<I, D>: Freeze,
<S as DatagramSocketSpec>::OtherStackIpOptions<I, D>: Freeze,
<S as DatagramSocketSpec>::ListenerIpAddr<I>: Freeze,
D: Freeze,
<I as BroadcastIpExt>::BroadcastMarker: Freeze,
impl<I, D, S> RefUnwindSafe for BoundSocketStateType<I, D, S>where
<I as DualStackIpExt>::OtherVersion: Sized,
<S as DatagramSocketSpec>::SharingState: RefUnwindSafe,
<S as DatagramSocketSpec>::ConnState<I, D>: RefUnwindSafe,
<S as DatagramSocketSpec>::OtherStackIpOptions<I, D>: RefUnwindSafe,
<S as DatagramSocketSpec>::ListenerIpAddr<I>: RefUnwindSafe,
D: RefUnwindSafe,
<I as BroadcastIpExt>::BroadcastMarker: RefUnwindSafe,
I: RefUnwindSafe,
<I as Ip>::Addr: RefUnwindSafe,
impl<I, D, S> Send for BoundSocketStateType<I, D, S>
impl<I, D, S> Sync for BoundSocketStateType<I, D, S>
impl<I, D, S> Unpin for BoundSocketStateType<I, D, S>where
<I as DualStackIpExt>::OtherVersion: Sized,
<S as DatagramSocketSpec>::SharingState: Unpin,
<S as DatagramSocketSpec>::ConnState<I, D>: Unpin,
<S as DatagramSocketSpec>::OtherStackIpOptions<I, D>: Unpin,
<S as DatagramSocketSpec>::ListenerIpAddr<I>: Unpin,
D: Unpin,
<I as BroadcastIpExt>::BroadcastMarker: Unpin,
I: Unpin,
<I as Ip>::Addr: Unpin,
impl<I, D, S> UnwindSafe for BoundSocketStateType<I, D, S>where
<I as DualStackIpExt>::OtherVersion: Sized,
<S as DatagramSocketSpec>::SharingState: UnwindSafe,
<S as DatagramSocketSpec>::ConnState<I, D>: UnwindSafe,
<S as DatagramSocketSpec>::OtherStackIpOptions<I, D>: UnwindSafe,
<S as DatagramSocketSpec>::ListenerIpAddr<I>: UnwindSafe,
D: UnwindSafe,
<I as BroadcastIpExt>::BroadcastMarker: UnwindSafe,
I: UnwindSafe,
<I as Ip>::Addr: 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