Struct netstack3_core::SyncCtx
source · pub struct SyncCtx<BT: BindingsTypes> {
pub state: StackState<BT>,
}
Expand description
The synchronized context.
Fields§
§state: StackState<BT>
Contains the state of the stack.
Implementations§
source§impl<NonSyncCtx: NonSyncContext> SyncCtx<NonSyncCtx>
impl<NonSyncCtx: NonSyncContext> SyncCtx<NonSyncCtx>
sourcepub fn new(non_sync_ctx: &mut NonSyncCtx) -> SyncCtx<NonSyncCtx>
pub fn new(non_sync_ctx: &mut NonSyncCtx) -> SyncCtx<NonSyncCtx>
Create a new SyncCtx
.
Auto Trait Implementations§
impl<BT> RefUnwindSafe for SyncCtx<BT>where <BT as InstantBindingsTypes>::Instant: RefUnwindSafe,
impl<BT> Send for SyncCtx<BT>where <BT as TcpBindingsTypes>::ListenerNotifierOrProvidedBuffers: Send, <BT as TcpBindingsTypes>::ReceiveBuffer: Send, <BT as TcpBindingsTypes>::ReturnedBuffers: Send, <BT as TcpBindingsTypes>::SendBuffer: Send,
impl<BT> Sync for SyncCtx<BT>where <BT as TcpBindingsTypes>::ListenerNotifierOrProvidedBuffers: Send, <BT as TcpBindingsTypes>::ReceiveBuffer: Send, <BT as TcpBindingsTypes>::ReturnedBuffers: Send, <BT as TcpBindingsTypes>::SendBuffer: Send,
impl<BT> Unpin for SyncCtx<BT>where <BT as InstantBindingsTypes>::Instant: Unpin, <BT as TcpBindingsTypes>::ListenerNotifierOrProvidedBuffers: Unpin, <BT as TcpBindingsTypes>::ReceiveBuffer: Unpin, <BT as TcpBindingsTypes>::ReturnedBuffers: Unpin, <BT as TcpBindingsTypes>::SendBuffer: Unpin,
impl<BT> UnwindSafe for SyncCtx<BT>where <BT as InstantBindingsTypes>::Instant: 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