pub enum DbcError {
Io(Error),
InvalidEnum(EnumError),
String(FromUtf8Error),
InvalidHeader(InvalidHeaderError),
}Expand description
Main error enum. Returned from crate::DbcTable::read.
Variants§
Io(Error)
IO errors.
InvalidEnum(EnumError)
Errors from invalid enum values.
String(FromUtf8Error)
Errors from converting bytes to strings.
InvalidHeader(InvalidHeaderError)
Errors related to headers.
Trait Implementations§
Source§impl Error for DbcError
impl Error for DbcError
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()
Source§impl From<FromUtf8Error> for DbcError
impl From<FromUtf8Error> for DbcError
Source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<InvalidHeaderError> for DbcError
impl From<InvalidHeaderError> for DbcError
Source§fn from(e: InvalidHeaderError) -> Self
fn from(e: InvalidHeaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DbcError
impl !RefUnwindSafe for DbcError
impl Send for DbcError
impl Sync for DbcError
impl Unpin for DbcError
impl !UnwindSafe for DbcError
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