pub struct Error<Variant> {
pub variant: Variant,
}
Expand description
A slim, abstract error type
Fields§
§variant: Variant
The error variant
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Variant> Freeze for Error<Variant>where
Variant: Freeze,
impl<Variant> RefUnwindSafe for Error<Variant>where
Variant: RefUnwindSafe,
impl<Variant> Send for Error<Variant>where
Variant: Send,
impl<Variant> Sync for Error<Variant>where
Variant: Sync,
impl<Variant> Unpin for Error<Variant>where
Variant: Unpin,
impl<Variant> UnwindSafe for Error<Variant>where
Variant: UnwindSafe,
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