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§
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, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)