pub struct Error<R, C: Command<R>> { /* private fields */ }
Expand description
An error which holds the command that caused it.
Implementations
Trait Implementations
sourceimpl<R, C: Command<R>> Error for Error<R, C>where
C: Debug,
C::Error: Error,
impl<R, C: Command<R>> Error for Error<R, C>where
C: Debug,
C::Error: Error,
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations
impl<R, C> RefUnwindSafe for Error<R, C>where
C: RefUnwindSafe,
<C as Command<R>>::Error: RefUnwindSafe,
impl<R, C> Send for Error<R, C>where
C: Send,
<C as Command<R>>::Error: Send,
impl<R, C> Sync for Error<R, C>where
C: Sync,
<C as Command<R>>::Error: Sync,
impl<R, C> Unpin for Error<R, C>where
C: Unpin,
<C as Command<R>>::Error: Unpin,
impl<R, C> UnwindSafe for Error<R, C>where
C: UnwindSafe,
<C as Command<R>>::Error: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more