pub enum ErrorKind {
Io,
NoData,
Eof,
BadDecode,
// some variants omitted
}
Expand description
The specific kind of error that can occur.
Variants§
Io
An error when an io operation failed.
NoData
An error when the decoded does not have enough data to parse a full frame.
Eof
An error when the end of the reader is reached.
BadDecode
An error when a SBC frame could not be decoded properly.
Trait Implementations§
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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