IntoBoxed

Trait IntoBoxed 

Source
pub trait IntoBoxed<T> {
    // Required method
    fn into_boxed(self) -> Result<T, Box<dyn Error + Send + Sync>>;
}
Expand description

 Trait to convert Err type of Result to dynamic trait object.

Since hook only supports Box<dyn std::error::Error> and anyhow::Error, please use this trace to convert it to a dynamic trace object if necessary.

Required Methods§

Source

fn into_boxed(self) -> Result<T, Box<dyn Error + Send + Sync>>

 Converts Err type of Result to dynamic trait object.

Implementations on Foreign Types§

Source§

impl<T, E: Error + Send + Sync + 'static> IntoBoxed<T> for Result<T, E>

 Trait to convert Err type of Result to dynamic trait object.

Since hook only supports Box<dyn std::error::Error> and anyhow::Error, please use this trace to convert it to a dynamic trace object if necessary.

Source§

fn into_boxed(self) -> Result<T, Box<dyn Error + Send + Sync>>

 Converts Err type of Result to dynamic trait object.

Implementors§