Trait axdriver::prelude::BaseDriverOps

pub trait BaseDriverOps: Send + Sync {
    // Required methods
    fn device_name(&self) -> &str;
    fn device_type(&self) -> DeviceType;
}
Expand description

Common operations that require all device drivers to implement.

Required Methods§

fn device_name(&self) -> &str

The name of the device.

fn device_type(&self) -> DeviceType

The type of the device.

Implementations on Foreign Types§

§

impl BaseDriverOps for RamDisk

§

fn device_type(&self) -> DeviceType

§

fn device_name(&self) -> &str

§

impl BaseDriverOps for SDHCIDriver

§

fn device_type(&self) -> DeviceType

§

fn device_name(&self) -> &str

§

impl<H, T> BaseDriverOps for VirtIoBlkDev<H, T>
where H: Hal, T: Transport,

§

fn device_name(&self) -> &str

§

fn device_type(&self) -> DeviceType

§

impl<H, T> BaseDriverOps for VirtIoGpuDev<H, T>
where H: Hal, T: Transport,

§

fn device_name(&self) -> &str

§

fn device_type(&self) -> DeviceType

§

impl<H, T, const QS: usize> BaseDriverOps for VirtIoNetDev<H, T, QS>
where H: Hal, T: Transport,

§

fn device_name(&self) -> &str

§

fn device_type(&self) -> DeviceType

§

impl<H, const QS: usize, const QN: u16> BaseDriverOps for IxgbeNic<H, QS, QN>
where H: IxgbeHal,

§

fn device_name(&self) -> &str

§

fn device_type(&self) -> DeviceType

Implementors§