struct VirtioDevice {
mmio: usize,
queue_notify_addr: usize,
}Fields§
§mmio: usize§queue_notify_addr: usizeImplementations§
Source§impl VirtioDevice
impl VirtioDevice
Sourcefn add_status(&mut self, status: u8)
fn add_status(&mut self, status: u8)
Performs the add status operation.
Sourcefn read_status(&self) -> u8
fn read_status(&self) -> u8
Reads status.
Sourcefn read_features(&self) -> u64
fn read_features(&self) -> u64
Reads features.
Sourcefn write_features(&mut self, features: u64)
fn write_features(&mut self, features: u64)
Writes features.
Auto Trait Implementations§
impl Freeze for VirtioDevice
impl RefUnwindSafe for VirtioDevice
impl Send for VirtioDevice
impl Sync for VirtioDevice
impl Unpin for VirtioDevice
impl UnsafeUnpin for VirtioDevice
impl UnwindSafe for VirtioDevice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more