pub struct TlsRestore(_);
Expand description
Opaque state used to help control TLS state across stack switches for
async support.
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.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
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.