Struct wasmer_vm::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.

Safety

This is not a safe operation since it’s intended to only be used with stack switching found with fibers and async wasmer.

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

Safety

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Deserializes using the given deserializer

Performs the conversion.

Performs the conversion.

The type for metadata in pointers and references to Self.

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.