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
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 TlsRestoreimpl !Send for TlsRestoreimpl !Sync for TlsRestoreimpl Unpin for TlsRestoreimpl !UnwindSafe for TlsRestore