pub enum MmioError {
BadMagic(u32),
UnsupportedVersion(u32),
ZeroDeviceId,
}Expand description
An error encountered initialising a VirtIO MMIO transport.
Variants§
BadMagic(u32)
The header doesn’t start with the expected magic value 0x74726976.
UnsupportedVersion(u32)
The header reports a version number that is neither 1 (legacy) nor 2 (modern).
ZeroDeviceId
The header reports a device ID of 0.
Trait Implementations§
Source§impl Error for MmioError
impl Error for MmioError
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()
impl Eq for MmioError
impl StructuralPartialEq for MmioError
Auto Trait Implementations§
impl Freeze for MmioError
impl RefUnwindSafe for MmioError
impl Send for MmioError
impl Sync for MmioError
impl Unpin for MmioError
impl UnwindSafe for MmioError
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