pub enum ReadFrameError<E> {
Io(Error),
Decode(E),
}
Expand description
Errors arising from reading a frame
Variants§
Io(Error)
There was an error in the underlying stream
Decode(E)
There was an error decoding the frame
Trait Implementations§
Source§impl<E: Debug> Debug for ReadFrameError<E>
impl<E: Debug> Debug for ReadFrameError<E>
Source§impl<E: Display> Display for ReadFrameError<E>
impl<E: Display> Display for ReadFrameError<E>
Source§impl<E> Error for ReadFrameError<E>where
E: Error + 'static,
impl<E> Error for ReadFrameError<E>where
E: Error + '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<E> Freeze for ReadFrameError<E>where
E: Freeze,
impl<E> !RefUnwindSafe for ReadFrameError<E>
impl<E> Send for ReadFrameError<E>where
E: Send,
impl<E> Sync for ReadFrameError<E>where
E: Sync,
impl<E> Unpin for ReadFrameError<E>where
E: Unpin,
impl<E> !UnwindSafe for ReadFrameError<E>
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