pub struct ViaErr2;Expand description
Wrapper for converting Error2 types to BoxedError2.
Use with .context() to wrap Error2-based errors, preserving
the original backtrace.
§Example
use error2::prelude::*;
fn outer() -> Result<(), BoxedError2> {
inner().context(ViaErr2)?;
Ok(())
}Auto Trait Implementations§
impl Freeze for ViaErr2
impl RefUnwindSafe for ViaErr2
impl Send for ViaErr2
impl Sync for ViaErr2
impl Unpin for ViaErr2
impl UnwindSafe for ViaErr2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more