pub enum InvalidHeaderError {
MagicValue {
actual: u32,
},
RecordSize {
expected: u32,
actual: u32,
},
FieldCount {
expected: u32,
actual: u32,
},
}
Expand description
Errors from reading the header of the DBC file.
Variants§
MagicValue
The magic value was not 0x43424457
, but was instead InvalidHeaderError::MagicValue::actual
.
RecordSize
The reported record_size
did not match the precomputed.
FieldCount
The reported amount of fields did not match the precomputed.
Trait Implementations§
Source§impl Debug for InvalidHeaderError
impl Debug for InvalidHeaderError
Source§impl Display for InvalidHeaderError
impl Display for InvalidHeaderError
Source§impl Error for InvalidHeaderError
impl Error for InvalidHeaderError
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<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 InvalidHeaderError
impl RefUnwindSafe for InvalidHeaderError
impl Send for InvalidHeaderError
impl Sync for InvalidHeaderError
impl Unpin for InvalidHeaderError
impl UnwindSafe for InvalidHeaderError
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