Struct wasmtime_runtime::TlsRestore [−][src]
pub struct TlsRestore(_);
Expand description
Opaque state used to help control TLS state across stack switches for async support.
Implementations
impl TlsRestore[src]
impl TlsRestore[src]pub unsafe fn take() -> TlsRestore[src]
pub unsafe fn take() -> TlsRestore[src]Takes the TLS state that is currently configured and returns a token that is used to replace it later.
This is not a safe operation since it’s intended to only be used with stack switching found with fibers and async wasmtime.
Auto Trait Implementations
impl !RefUnwindSafe for TlsRestore
impl !Send for TlsRestore
impl !Sync for TlsRestore
impl Unpin for TlsRestore
impl !UnwindSafe for TlsRestore
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,