pub enum RvfError {
Code(ErrorCode),
UnknownCode(u16),
BadMagic {
expected: u32,
got: u32,
},
SizeMismatch {
expected: usize,
got: usize,
},
InvalidEnumValue {
type_name: &'static str,
value: u64,
},
}Expand description
Rust-idiomatic error type wrapping format-level failures.
Variants§
Code(ErrorCode)
A wire-level error code was returned.
UnknownCode(u16)
The raw u16 did not map to a known error code.
BadMagic
A segment header had an invalid magic number.
SizeMismatch
A struct size assertion failed.
InvalidEnumValue
A value was outside the valid enum range.
Trait Implementations§
impl Eq for RvfError
impl StructuralPartialEq for RvfError
Auto Trait Implementations§
impl Freeze for RvfError
impl RefUnwindSafe for RvfError
impl Send for RvfError
impl Sync for RvfError
impl Unpin for RvfError
impl UnwindSafe for RvfError
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