Enum streamcatcher::Finaliser [−][src]
pub enum Finaliser {
InPlace,
NewThread,
AsyncStd,
Tokio,
Smol,
}
Expand description
Method to allocate a new contiguous backing store, if required by
Config::use_backing
.
Choosing the incorrect async runtime may cause a panic, and any values other than
InPlace
or NewThread
will result in an error in a synchronous Catcher
.
Variants
InPlace
Allocate the new store and copy in all bytes in-place, blocking the current thread.
NewThread
Allocate the new store and copy in all bytes in-place in a new thread.
Default, safe to call in an async context.
AsyncStd
Use the async-std runtime for backing-store creation.
Requires the "async-std-compat"
feature.
Tokio
Use the tokio runtime for backing-store creation.
Requires the "tokio-compat"
feature.
Smol
Use the smol runtime for backing-store creation.
Requires the "smol-compat"
feature.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Finaliser
impl UnwindSafe for Finaliser
Blanket Implementations
Mutably borrows from an owned value. Read more