pub struct BoundSocketState<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> {
pub socket_type: BoundSocketStateType<I, D, S>,
pub original_bound_addr: Option<S::ListenerIpAddr<I>>,
}
Expand description
State associated with a Bound Socket.
Fields§
§socket_type: BoundSocketStateType<I, D, S>
The type of bound socket (e.g. Listener vs. Connected), and any type-specific state.
original_bound_addr: Option<S::ListenerIpAddr<I>>
The original bound address of the socket, as requested by the caller.
None
if:
- the socket was connected from unbound, or
- listen was called without providing a local port.
Trait Implementations§
Source§impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<I, D, S>> for BoundSocketState<I, D, S>
impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<I, D, S>> for BoundSocketState<I, D, S>
Source§impl<I: IpExt, D, S: DatagramSocketSpec> Debug for BoundSocketState<I, D, S>where
D: Debug + WeakDeviceIdentifier,
impl<I: IpExt, D, S: DatagramSocketSpec> Debug for BoundSocketState<I, D, S>where
D: Debug + WeakDeviceIdentifier,
Auto Trait Implementations§
impl<I, D, S> Freeze for BoundSocketState<I, D, S>where
<I as DualStackIpExt>::OtherVersion: Sized,
<S as DatagramSocketSpec>::SharingState: Freeze,
<S as DatagramSocketSpec>::ConnState<I, D>: Freeze,
<S as DatagramSocketSpec>::ListenerIpAddr<I>: Freeze,
<S as DatagramSocketSpec>::OtherStackIpOptions<I, D>: Freeze,
D: Freeze,
<I as BroadcastIpExt>::BroadcastMarker: Freeze,
impl<I, D, S> RefUnwindSafe for BoundSocketState<I, D, S>where
<I as DualStackIpExt>::OtherVersion: Sized,
<S as DatagramSocketSpec>::SharingState: RefUnwindSafe,
<S as DatagramSocketSpec>::ConnState<I, D>: RefUnwindSafe,
<S as DatagramSocketSpec>::ListenerIpAddr<I>: RefUnwindSafe,
<S as DatagramSocketSpec>::OtherStackIpOptions<I, D>: RefUnwindSafe,
D: RefUnwindSafe,
<I as BroadcastIpExt>::BroadcastMarker: RefUnwindSafe,
I: RefUnwindSafe,
<I as Ip>::Addr: RefUnwindSafe,
impl<I, D, S> Send for BoundSocketState<I, D, S>
impl<I, D, S> Sync for BoundSocketState<I, D, S>
impl<I, D, S> Unpin for BoundSocketState<I, D, S>where
<I as DualStackIpExt>::OtherVersion: Sized,
<S as DatagramSocketSpec>::SharingState: Unpin,
<S as DatagramSocketSpec>::ConnState<I, D>: Unpin,
<S as DatagramSocketSpec>::ListenerIpAddr<I>: Unpin,
<S as DatagramSocketSpec>::OtherStackIpOptions<I, D>: Unpin,
D: Unpin,
<I as BroadcastIpExt>::BroadcastMarker: Unpin,
I: Unpin,
<I as Ip>::Addr: Unpin,
impl<I, D, S> UnwindSafe for BoundSocketState<I, D, S>where
<I as DualStackIpExt>::OtherVersion: Sized,
<S as DatagramSocketSpec>::SharingState: UnwindSafe,
<S as DatagramSocketSpec>::ConnState<I, D>: UnwindSafe,
<S as DatagramSocketSpec>::ListenerIpAddr<I>: UnwindSafe,
<S as DatagramSocketSpec>::OtherStackIpOptions<I, D>: 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