Enum wow_dbc::InvalidHeaderError
source · [−]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
Fields
actual: u32Value gotten instead of magic header.
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
sourceimpl Debug for InvalidHeaderError
impl Debug for InvalidHeaderError
sourceimpl Display for InvalidHeaderError
impl Display for InvalidHeaderError
sourceimpl Error for InvalidHeaderError
impl Error for InvalidHeaderError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<InvalidHeaderError> for DbcError
impl From<InvalidHeaderError> for DbcError
sourcefn from(e: InvalidHeaderError) -> Self
fn from(e: InvalidHeaderError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for InvalidHeaderError
impl Send for InvalidHeaderError
impl Sync for InvalidHeaderError
impl Unpin for InvalidHeaderError
impl UnwindSafe for InvalidHeaderError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more