pub struct Error<Item>(/* private fields */);Expand description
Abstract the errors encountered internally.
Trait Implementations§
Source§impl<Item> Error for Error<Item>where
Item: Debug + 'static,
impl<Item> Error for Error<Item>where
Item: Debug + 'static,
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<Item> !RefUnwindSafe for Error<Item>
impl<Item> !UnwindSafe for Error<Item>
impl<Item> Freeze for Error<Item>where
Item: Freeze,
impl<Item> Send for Error<Item>where
Item: Send,
impl<Item> Sync for Error<Item>where
Item: Sync,
impl<Item> Unpin for Error<Item>where
Item: Unpin,
impl<Item> UnsafeUnpin for Error<Item>where
Item: UnsafeUnpin,
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