pub enum MmioError {
BadMagic(u32),
UnsupportedVersion(u32),
InvalidDeviceID(DeviceTypeError),
MmioRegionTooSmall,
}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).
InvalidDeviceID(DeviceTypeError)
The header reports a device ID of 0.
MmioRegionTooSmall
The MMIO region size was smaller than the header size we expect.
Trait Implementations§
Source§impl Error for MmioError
impl Error for MmioError
1.30.0§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§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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)