pub enum Bound<S: SocketMapStateSpec + ?Sized> {
Listen(S::ListenerAddrState),
Conn(S::ConnAddrState),
}
Expand description
A bound socket state that is either a listener or a connection.
Variants§
Listen(S::ListenerAddrState)
Conn(S::ConnAddrState)
Trait Implementations§
Source§impl<I: Ip, D: DeviceIdentifier, A: SocketMapAddrSpec, S: SocketMapStateSpec + ?Sized> Tagged<AddrVec<I, D, A>> for Bound<S>
impl<I: Ip, D: DeviceIdentifier, A: SocketMapAddrSpec, S: SocketMapStateSpec + ?Sized> Tagged<AddrVec<I, D, A>> for Bound<S>
Auto Trait Implementations§
impl<S> Freeze for Bound<S>where
<S as SocketMapStateSpec>::ListenerAddrState: Freeze,
<S as SocketMapStateSpec>::ConnAddrState: Freeze,
S: ?Sized,
impl<S> RefUnwindSafe for Bound<S>where
<S as SocketMapStateSpec>::ListenerAddrState: RefUnwindSafe,
<S as SocketMapStateSpec>::ConnAddrState: RefUnwindSafe,
S: ?Sized,
impl<S> Send for Bound<S>where
<S as SocketMapStateSpec>::ListenerAddrState: Send,
<S as SocketMapStateSpec>::ConnAddrState: Send,
S: ?Sized,
impl<S> Sync for Bound<S>where
<S as SocketMapStateSpec>::ListenerAddrState: Sync,
<S as SocketMapStateSpec>::ConnAddrState: Sync,
S: ?Sized,
impl<S> Unpin for Bound<S>where
<S as SocketMapStateSpec>::ListenerAddrState: Unpin,
<S as SocketMapStateSpec>::ConnAddrState: Unpin,
S: ?Sized,
impl<S> UnwindSafe for Bound<S>where
<S as SocketMapStateSpec>::ListenerAddrState: UnwindSafe,
<S as SocketMapStateSpec>::ConnAddrState: UnwindSafe,
S: ?Sized,
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