pub enum AddrEntry<'a, I: Ip, D, A: SocketMapAddrSpec, S: SocketMapStateSpec> {
Listen(&'a S::ListenerAddrState, ListenerAddr<ListenerIpAddr<I::Addr, A::LocalIdentifier>, D>),
Conn(&'a S::ConnAddrState, ConnAddr<ConnIpAddr<I::Addr, A::LocalIdentifier, A::RemoteIdentifier>, D>),
}
Expand description
A borrowed entry in a BoundSocketMap
.
Variants§
Listen(&'a S::ListenerAddrState, ListenerAddr<ListenerIpAddr<I::Addr, A::LocalIdentifier>, D>)
Conn(&'a S::ConnAddrState, ConnAddr<ConnIpAddr<I::Addr, A::LocalIdentifier, A::RemoteIdentifier>, D>)
Trait Implementations§
Source§impl<'a, I: Debug + Ip, D: Debug, A: Debug + SocketMapAddrSpec, S: Debug + SocketMapStateSpec> Debug for AddrEntry<'a, I, D, A, S>where
S::ListenerAddrState: Debug,
I::Addr: Debug,
A::LocalIdentifier: Debug,
S::ConnAddrState: Debug,
A::RemoteIdentifier: Debug,
impl<'a, I: Debug + Ip, D: Debug, A: Debug + SocketMapAddrSpec, S: Debug + SocketMapStateSpec> Debug for AddrEntry<'a, I, D, A, S>where
S::ListenerAddrState: Debug,
I::Addr: Debug,
A::LocalIdentifier: Debug,
S::ConnAddrState: Debug,
A::RemoteIdentifier: Debug,
Auto Trait Implementations§
impl<'a, I, D, A, S> Freeze for AddrEntry<'a, I, D, A, S>where
<A as SocketMapAddrSpec>::LocalIdentifier: Freeze,
D: Freeze,
<A as SocketMapAddrSpec>::RemoteIdentifier: Freeze,
<I as Ip>::Addr: Freeze,
impl<'a, I, D, A, S> RefUnwindSafe for AddrEntry<'a, I, D, A, S>where
<S as SocketMapStateSpec>::ListenerAddrState: RefUnwindSafe,
<S as SocketMapStateSpec>::ConnAddrState: RefUnwindSafe,
<A as SocketMapAddrSpec>::LocalIdentifier: RefUnwindSafe,
D: RefUnwindSafe,
<A as SocketMapAddrSpec>::RemoteIdentifier: RefUnwindSafe,
<I as Ip>::Addr: RefUnwindSafe,
impl<'a, I, D, A, S> Send for AddrEntry<'a, I, D, A, S>where
<S as SocketMapStateSpec>::ListenerAddrState: Sync,
<S as SocketMapStateSpec>::ConnAddrState: Sync,
D: Send,
impl<'a, I, D, A, S> Sync for AddrEntry<'a, I, D, A, S>where
<S as SocketMapStateSpec>::ListenerAddrState: Sync,
<S as SocketMapStateSpec>::ConnAddrState: Sync,
D: Sync,
impl<'a, I, D, A, S> Unpin for AddrEntry<'a, I, D, A, S>where
<A as SocketMapAddrSpec>::LocalIdentifier: Unpin,
D: Unpin,
<A as SocketMapAddrSpec>::RemoteIdentifier: Unpin,
<I as Ip>::Addr: Unpin,
impl<'a, I, D, A, S> UnwindSafe for AddrEntry<'a, I, D, A, S>where
<S as SocketMapStateSpec>::ListenerAddrState: RefUnwindSafe,
<S as SocketMapStateSpec>::ConnAddrState: RefUnwindSafe,
<A as SocketMapAddrSpec>::LocalIdentifier: UnwindSafe,
D: UnwindSafe,
<A as SocketMapAddrSpec>::RemoteIdentifier: 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