virtio_drivers

Type Alias Result

Source
pub type Result<T = ()> = Result<T, Error>;
Expand description

The type returned by driver methods.

Aliased Type§

enum Result<T = ()> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

Source§

impl From<RespStatus> for Result

Source§

fn from(status: RespStatus) -> Self

Converts to this type from the input type.