Trait CatchExt

Source
pub trait CatchExt {
    type Value;
    type Error;

    // Required method
    fn catch<E>(self) -> Result<Result<Self::Value, E>, Self::Error>
       where E: Error + Send + Sync + 'static;
}

Required Associated Types§

Required Methods§

Source

fn catch<E>(self) -> Result<Result<Self::Value, E>, Self::Error>
where E: Error + Send + Sync + 'static,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§