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: SocketMapConflictPolicy<SocketType::Addr, SocketType::SharingState, I, D, A>> 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: SocketMapConflictPolicy<SocketType::Addr, SocketType::SharingState, I, D, A>> 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> !UnwindSafe for SocketStateEntry<'a, I, D, A, S, SocketType>
impl<'a, I, D, A, S, SocketType> Freeze for SocketStateEntry<'a, I, D, A, S, SocketType>where
SocketId<S>: Freeze,
OccupiedEntry<'a, AddrVec<I, D, A>, Bound<S>>: Freeze,
PhantomData<SocketType>: Freeze,
impl<'a, I, D, A, S, SocketType> RefUnwindSafe for SocketStateEntry<'a, I, D, A, S, SocketType>where
SocketId<S>: RefUnwindSafe,
OccupiedEntry<'a, AddrVec<I, D, A>, Bound<S>>: RefUnwindSafe,
PhantomData<SocketType>: RefUnwindSafe,
impl<'a, I, D, A, S, SocketType> Send for SocketStateEntry<'a, I, D, A, S, SocketType>where
SocketId<S>: Send,
OccupiedEntry<'a, AddrVec<I, D, A>, Bound<S>>: Send,
PhantomData<SocketType>: Send,
impl<'a, I, D, A, S, SocketType> Sync for SocketStateEntry<'a, I, D, A, S, SocketType>where
SocketId<S>: Sync,
OccupiedEntry<'a, AddrVec<I, D, A>, Bound<S>>: Sync,
PhantomData<SocketType>: Sync,
impl<'a, I, D, A, S, SocketType> Unpin for SocketStateEntry<'a, I, D, A, S, SocketType>where
SocketId<S>: Unpin,
OccupiedEntry<'a, AddrVec<I, D, A>, Bound<S>>: Unpin,
PhantomData<SocketType>: Unpin,
impl<'a, I, D, A, S, SocketType> UnsafeUnpin for SocketStateEntry<'a, I, D, A, S, SocketType>where
SocketId<S>: UnsafeUnpin,
OccupiedEntry<'a, AddrVec<I, D, A>, Bound<S>>: UnsafeUnpin,
PhantomData<SocketType>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<B, A> LockBefore<B> for Awhere
B: LockAfter<A>,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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>>
fn send_frame<S>( &mut self, bindings_ctx: &mut BC, metadata: Meta, frame: S, ) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>
Send a frame. Read more
Source§impl<BC, S, Meta, DeviceId> SendableFrameMeta<FakeCoreCtx<S, Meta, DeviceId>, BC> for Meta
impl<BC, S, Meta, DeviceId> SendableFrameMeta<FakeCoreCtx<S, Meta, DeviceId>, BC> for Meta
Source§fn send_meta<SS>(
self,
core_ctx: &mut FakeCoreCtx<S, Meta, DeviceId>,
bindings_ctx: &mut BC,
frame: SS,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, SS>>
fn send_meta<SS>( self, core_ctx: &mut FakeCoreCtx<S, Meta, DeviceId>, bindings_ctx: &mut BC, frame: SS, ) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, SS>>
Sends this frame metadata to the provided contexts.
Source§impl<Meta, BC> SendableFrameMeta<FakeFrameCtx<Meta>, BC> for Meta
impl<Meta, BC> SendableFrameMeta<FakeFrameCtx<Meta>, BC> for Meta
Source§fn send_meta<S>(
self,
core_ctx: &mut FakeFrameCtx<Meta>,
_bindings_ctx: &mut BC,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>
fn send_meta<S>( self, core_ctx: &mut FakeFrameCtx<Meta>, _bindings_ctx: &mut BC, frame: S, ) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>
Sends this frame metadata to the provided contexts.
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