pub struct SocketStateEntry<'a, I: Ip, D: DeviceIdentifier, A: SocketMapAddrSpec, S: SocketMapStateSpec, SocketType> { /* private fields */ }
Expand description
A borrowed state entry in a SocketMap
.
Implementations§
Source§impl<'a, I: Ip, D: DeviceIdentifier, SocketType: ConvertSocketMapState<I, D, A, S>, A: SocketMapAddrSpec, S: SocketMapStateSpec> SocketStateEntry<'a, I, D, A, S, SocketType>where
SocketType::Id: Clone,
impl<'a, I: Ip, D: DeviceIdentifier, SocketType: ConvertSocketMapState<I, D, A, S>, A: SocketMapAddrSpec, S: SocketMapStateSpec> SocketStateEntry<'a, I, D, A, S, SocketType>where
SocketType::Id: Clone,
Sourcepub fn try_update_addr(
self,
new_addr: SocketType::Addr,
) -> Result<Self, (ExistsError, Self)>
pub fn try_update_addr( self, new_addr: SocketType::Addr, ) -> Result<Self, (ExistsError, Self)>
Attempts to update the address for this entry.
Sourcepub fn try_update_sharing(
&mut self,
old_sharing_state: &SocketType::SharingState,
new_sharing_state: SocketType::SharingState,
) -> Result<(), UpdateSharingError>where
SocketType::AddrState: SocketMapAddrStateUpdateSharingSpec,
S: SocketMapUpdateSharingPolicy<SocketType::Addr, SocketType::SharingState, I, D, A>,
pub fn try_update_sharing(
&mut self,
old_sharing_state: &SocketType::SharingState,
new_sharing_state: SocketType::SharingState,
) -> Result<(), UpdateSharingError>where
SocketType::AddrState: SocketMapAddrStateUpdateSharingSpec,
S: SocketMapUpdateSharingPolicy<SocketType::Addr, SocketType::SharingState, I, D, A>,
Attempts to update the sharing state for this entry.
Trait Implementations§
Source§impl<'a, I: Ip, D: DeviceIdentifier, A: SocketMapAddrSpec, S: SocketMapStateSpec, SocketType> Debug for SocketStateEntry<'a, I, D, A, S, SocketType>
impl<'a, I: Ip, D: DeviceIdentifier, A: SocketMapAddrSpec, S: SocketMapStateSpec, SocketType> Debug for SocketStateEntry<'a, I, D, A, S, SocketType>
Auto Trait Implementations§
impl<'a, I, D, A, S, SocketType> Freeze for SocketStateEntry<'a, I, D, A, S, SocketType>where
<S as SocketMapStateSpec>::ListenerId: Freeze,
<S as SocketMapStateSpec>::ConnId: Freeze,
<A as SocketMapAddrSpec>::LocalIdentifier: Freeze,
D: Freeze,
<A as SocketMapAddrSpec>::RemoteIdentifier: Freeze,
<I as Ip>::Addr: Freeze,
impl<'a, I, D, A, S, SocketType> RefUnwindSafe for SocketStateEntry<'a, I, D, A, S, SocketType>where
<S as SocketMapStateSpec>::ListenerId: RefUnwindSafe,
<S as SocketMapStateSpec>::ConnId: RefUnwindSafe,
SocketType: RefUnwindSafe,
<A as SocketMapAddrSpec>::LocalIdentifier: RefUnwindSafe,
D: RefUnwindSafe,
<A as SocketMapAddrSpec>::RemoteIdentifier: RefUnwindSafe,
<I as Ip>::Addr: RefUnwindSafe,
<S as SocketMapStateSpec>::ListenerAddrState: RefUnwindSafe,
<S as SocketMapStateSpec>::ConnAddrState: RefUnwindSafe,
<S as SocketMapStateSpec>::AddrVecTag: RefUnwindSafe,
impl<'a, I, D, A, S, SocketType> Send for SocketStateEntry<'a, I, D, A, S, SocketType>where
<S as SocketMapStateSpec>::ListenerId: Send,
<S as SocketMapStateSpec>::ConnId: Send,
SocketType: Send,
<S as SocketMapStateSpec>::ListenerAddrState: Send,
<S as SocketMapStateSpec>::ConnAddrState: Send,
<S as SocketMapStateSpec>::AddrVecTag: Send,
impl<'a, I, D, A, S, SocketType> Sync for SocketStateEntry<'a, I, D, A, S, SocketType>where
<S as SocketMapStateSpec>::ListenerId: Sync,
<S as SocketMapStateSpec>::ConnId: Sync,
SocketType: Sync,
<S as SocketMapStateSpec>::ListenerAddrState: Sync,
<S as SocketMapStateSpec>::ConnAddrState: Sync,
<S as SocketMapStateSpec>::AddrVecTag: Sync,
impl<'a, I, D, A, S, SocketType> Unpin for SocketStateEntry<'a, I, D, A, S, SocketType>where
<S as SocketMapStateSpec>::ListenerId: Unpin,
<S as SocketMapStateSpec>::ConnId: Unpin,
SocketType: Unpin,
<A as SocketMapAddrSpec>::LocalIdentifier: Unpin,
D: Unpin,
<A as SocketMapAddrSpec>::RemoteIdentifier: Unpin,
<I as Ip>::Addr: Unpin,
impl<'a, I, D, A, S, SocketType> !UnwindSafe for SocketStateEntry<'a, I, D, A, S, SocketType>
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