ErrorWrap

Trait ErrorWrap 

Source
pub trait ErrorWrap<Source, Target>
where Source: Error, Target: Error2,
{ // Required method fn wrap(self, source: Source, location: Location) -> Target; }

Required Methods§

Source

fn wrap(self, source: Source, location: Location) -> Target

Implementors§

Source§

impl<S> ErrorWrap<NoneError, BoxedError2> for ViaNone<S>
where S: Into<String>,

Source§

impl<T> ErrorWrap<T, BoxedError2> for ViaErr2
where T: Error2 + Send + Sync + 'static,

Source§

impl<T> ErrorWrap<T, BoxedError2> for ViaStd
where T: Error + Send + Sync + 'static,