pub enum Error<Io> {
Aead,
Io(Io),
}Expand description
An error for read/write operations with custom Error types. Mainly useful for no_std
environments
Variants§
Trait Implementations§
Source§impl<Io> Error for Error<Io>
impl<Io> Error for Error<Io>
1.30.0 · 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<Io> Freeze for Error<Io>where
Io: Freeze,
impl<Io> RefUnwindSafe for Error<Io>where
Io: RefUnwindSafe,
impl<Io> Send for Error<Io>where
Io: Send,
impl<Io> Sync for Error<Io>where
Io: Sync,
impl<Io> Unpin for Error<Io>where
Io: Unpin,
impl<Io> UnwindSafe for Error<Io>where
Io: 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