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§
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.
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.