Trait IntoChained

Source
pub trait IntoChained {
    // Required method
    fn into_chained<S>(self, source: S) -> StrError
       where S: Into<Box<dyn Error + Send + Sync>>;
}
Expand description

Trait providing into_chained for converting context into a chained error.

You will likely not use this trait directly, and it is not in the prelude. It is used to implement ChainErr and ChainError, which you should use instead.

Required Methods§

Source

fn into_chained<S>(self, source: S) -> StrError
where S: Into<Box<dyn Error + Send + Sync>>,

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.

Implementations on Foreign Types§

Source§

impl IntoChained for &str

Source§

fn into_chained<S>(self, source: S) -> StrError
where S: Into<Box<dyn Error + Send + Sync>>,

Source§

impl IntoChained for &String

Source§

fn into_chained<S>(self, source: S) -> StrError
where S: Into<Box<dyn Error + Send + Sync>>,

Source§

impl IntoChained for Cow<'_, str>

Source§

fn into_chained<S>(self, source: S) -> StrError
where S: Into<Box<dyn Error + Send + Sync>>,

Source§

impl IntoChained for Box<str>

Source§

fn into_chained<S>(self, source: S) -> StrError
where S: Into<Box<dyn Error + Send + Sync>>,

Source§

impl IntoChained for String

Source§

fn into_chained<S>(self, source: S) -> StrError
where S: Into<Box<dyn Error + Send + Sync>>,

Implementors§

Source§

impl<F, C> IntoChained for F
where F: FnOnce() -> C, C: IntoChained,