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.

Restores a previous tls state back into this thread’s TLS.

This is unsafe because it’s intended to only be used within the context of stack switching within wasmtime.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.