Trait IntoError

Source
pub trait IntoError {
    // Required methods
    fn set_err_summary<M>(self, msg: M) -> Error
       where M: Into<Cow<'static, str>>;
    fn set_err_details<M>(self, msg: M) -> Error
       where M: Into<Cow<'static, str>>;
    fn set_err_kind(self, kind: ErrorKind) -> Error;
    fn set_err_related_path(self, p: &Path) -> Error;
}

Required Methods§

Source

fn set_err_summary<M>(self, msg: M) -> Error
where M: Into<Cow<'static, str>>,

Source

fn set_err_details<M>(self, msg: M) -> Error
where M: Into<Cow<'static, str>>,

Source

fn set_err_kind(self, kind: ErrorKind) -> Error

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§

Source§

impl<I: Into<Error>> IntoError for I