pub enum Error<B> {
Read(ReadError),
Write(WriteError<B>),
Encode(Error),
Decode(Error),
}
Variants§
Trait Implementations§
Source§impl<B> From<WriteError<B>> for Error<B>
impl<B> From<WriteError<B>> for Error<B>
Source§fn from(e: WriteError<B>) -> Self
fn from(e: WriteError<B>) -> Self
Converts to this type from the input type.
impl<B: Eq> Eq for Error<B>
impl<B> StructuralPartialEq for Error<B>
Auto Trait Implementations§
impl<B> Freeze for Error<B>where
B: Freeze,
impl<B> RefUnwindSafe for Error<B>where
B: RefUnwindSafe,
impl<B> Send for Error<B>where
B: Send,
impl<B> Sync for Error<B>where
B: Sync,
impl<B> Unpin for Error<B>where
B: Unpin,
impl<B> UnwindSafe for Error<B>where
B: 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