pub enum VirtioTransport {
Pci(VirtioPciTransport),
Mmio(VirtioMmioTransport),
}Expand description
Unified transport enum for virtio-blk
Variants§
Pci(VirtioPciTransport)
Mmio(VirtioMmioTransport)
Implementations§
Source§impl VirtioTransport
impl VirtioTransport
pub fn begin_init(&self)
pub fn write_guest_features(&self, features: u32)
pub fn read_device_features(&self) -> u32
pub fn set_features_ok(&self) -> bool
pub fn select_queue(&self, idx: u16)
pub fn read_queue_size(&self) -> u16
pub fn write_queue_address(&self, pfn: u32)
pub fn write_queue_phys(&self, desc: u64, avail: u64, used: u64)
pub fn set_queue_ready(&self)
pub fn set_driver_ok(&self)
pub fn notify_queue(&self, idx: u16)
pub fn read_device_config_u64(&self, offset: u16) -> u64
Trait Implementations§
Source§impl Clone for VirtioTransport
impl Clone for VirtioTransport
Source§fn clone(&self) -> VirtioTransport
fn clone(&self) -> VirtioTransport
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VirtioTransport
impl Debug for VirtioTransport
impl Copy for VirtioTransport
Auto Trait Implementations§
impl Freeze for VirtioTransport
impl RefUnwindSafe for VirtioTransport
impl Send for VirtioTransport
impl Sync for VirtioTransport
impl Unpin for VirtioTransport
impl UnwindSafe for VirtioTransport
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)