pub enum WbinError {
FileTooSmall {
expected: usize,
actual: usize,
},
InvalidMagic {
actual: [u8; 4],
},
UnsupportedVersion {
version: u16,
},
InvalidOffset {
field: &'static str,
offset: u32,
file_size: usize,
},
InvalidSize {
field: &'static str,
offset: u32,
size: u32,
file_size: usize,
},
UnterminatedString {
offset: u32,
},
InvalidKernelCount {
count: u32,
metadata_size: u32,
},
}Variants§
FileTooSmall
InvalidMagic
UnsupportedVersion
InvalidOffset
InvalidSize
UnterminatedString
InvalidKernelCount
Trait Implementations§
Source§impl Error for WbinError
impl Error for WbinError
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()
Auto Trait Implementations§
impl Freeze for WbinError
impl RefUnwindSafe for WbinError
impl Send for WbinError
impl Sync for WbinError
impl Unpin for WbinError
impl UnsafeUnpin for WbinError
impl UnwindSafe for WbinError
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