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

Returns whether this option will block a reading thread in a sync-friendly manner.

Returns whether this option will block a reading thread to finalise.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Applies the Compat adapter by value. Read more

Applies the Compat adapter by shared reference. Read more

Applies the Compat adapter by mutable reference. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.