pub struct PackedError { /* private fields */ }Expand description
A DogeError flattened for the trip back from a pup to its fetcher: no Rc,
so it is Send. Rebuilt into a real error (with its original raise site
preserved, so oh no sees the same file/line) by PackedError::into_error.
Implementations§
Source§impl PackedError
impl PackedError
Sourcepub fn from_error(err: DogeError) -> PackedError
pub fn from_error(err: DogeError) -> PackedError
Flatten an error the pup raised so it can travel back to the fetcher.
Sourcepub fn into_error(self) -> DogeError
pub fn into_error(self) -> DogeError
Rebuild the error on the fetching side, so pack.fetch re-raises exactly
what the pup raised.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PackedError
impl RefUnwindSafe for PackedError
impl Send for PackedError
impl Sync for PackedError
impl Unpin for PackedError
impl UnsafeUnpin for PackedError
impl UnwindSafe for PackedError
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