Enum VirtIOInitializationError

Source
pub enum VirtIOInitializationError {
    NotAVirtIODevice,
    InvalidVirtIOVersion,
    InvalidTransportVersion,
    UnknownDeviceType(u32),
    IncompatibleDriverDeviceType(VirtIODeviceType),
    FeatureNegotiationFailed {
        offered: u64,
        accepted: Option<u64>,
    },
    VirtqueueNotAvailable(usize),
    DriverPreInitializationError(ErrorCode),
    DriverInitializationError(VirtIODeviceType, ErrorCode),
    DeviceError,
}

Variants§

§

NotAVirtIODevice

Device does not identify itself or can be recognized as a VirtIO device.

§

InvalidVirtIOVersion

An unknown or incompatible VirtIO standard version.

§

InvalidTransportVersion

An unknown or incompatible VirtIO transport device version.

§

UnknownDeviceType(u32)

Unknown VirtIO device type (as defined by the VirtIODeviceType enum).

§

IncompatibleDriverDeviceType(VirtIODeviceType)

Driver does not support driving the recognized device type.

§

FeatureNegotiationFailed

Feature negotiation between the device and transport + device driver has failed.

The device offered the offered features, the driver has either not accepted this feature set accepted == None or has responded with the accepted feature bitset, which the device has subsequently not acknowledged.

Fields

§offered: u64
§accepted: Option<u64>
§

VirtqueueNotAvailable(usize)

The requested Virtqueue with respective index is not available with this VirtIO device.

§

DriverPreInitializationError(ErrorCode)

An error was reported by the VirtIODeviceDriver::pre_device_initialization function. The device has been put into the FAILED state.

§

DriverInitializationError(VirtIODeviceType, ErrorCode)

An error was reported by the VirtIODeviceDriver::device_initialized function. The device status has been previously indicated as DRIVER_OK and the transport has NOT put it into the FAILED state, although the driver might have. The initialization has continued as usual, despite reporting this error, hence it also carries the device type.

§

DeviceError

An invariant was violated by the device. This error should not occur assuming a compliant device, transport and driver implementation.

Trait Implementations§

Source§

impl Clone for VirtIOInitializationError

Source§

fn clone(&self) -> VirtIOInitializationError

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for VirtIOInitializationError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for VirtIOInitializationError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.