pub struct PreviousAsyncWasmCallState { /* private fields */ }
Expand description
Opaque state used to help control TLS state across stack switches for async support.
Implementations§
source§impl PreviousAsyncWasmCallState
impl PreviousAsyncWasmCallState
sourcepub unsafe fn restore(self) -> AsyncWasmCallState
pub unsafe fn restore(self) -> AsyncWasmCallState
Pops a fiber’s linked list of activations and stores them in
AsyncWasmCallState
.
This will pop the top activation of this current thread continuously
until it reaches whatever the current activation was when push
was
originally called.
§Unsafety
Must be paired with a push
and only performed at a time when a
fiber is being suspended.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreviousAsyncWasmCallState
impl !RefUnwindSafe for PreviousAsyncWasmCallState
impl !Send for PreviousAsyncWasmCallState
impl !Sync for PreviousAsyncWasmCallState
impl Unpin for PreviousAsyncWasmCallState
impl !UnwindSafe for PreviousAsyncWasmCallState
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