[][src]Enum streamcatcher::Finaliser

pub enum Finaliser {
    InPlace,
    NewThread,
    AsyncStd,
    Tokio,
    Smol,
}

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

impl Finaliser[src]

pub fn is_sync(&self) -> bool[src]

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

pub fn run_elsewhere(&self) -> bool[src]

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

Trait Implementations

impl Clone for Finaliser[src]

impl Copy for Finaliser[src]

impl Debug for Finaliser[src]

impl Eq for Finaliser[src]

impl PartialEq<Finaliser> for Finaliser[src]

impl StructuralEq for Finaliser[src]

impl StructuralPartialEq for Finaliser[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CompatExt for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.