pub struct VirtioPciDevice { /* private fields */ }Expand description
Manages a fully initialized virtio device using the PCI transport.
VirtioPciDeviceBuilder implements virtio initialization and creates
instances.
Implementations§
Source§impl VirtioPciDevice
impl VirtioPciDevice
Sourcepub fn feature_bits(&self) -> VirtioFeatureBits
pub fn feature_bits(&self) -> VirtioFeatureBits
Returns the feature bits negotiated with the virtio device.
Sourcepub async fn submit_and_wait_for_buffer(
&mut self,
queue_index: u16,
buffer: &[VirtioMemoryRange],
) -> Result<u32, Status>
pub async fn submit_and_wait_for_buffer( &mut self, queue_index: u16, buffer: &[VirtioMemoryRange], ) -> Result<u32, Status>
Submits a buffer to the queue, and waits for the buffer to be returned.
Auto Trait Implementations§
impl !RefUnwindSafe for VirtioPciDevice
impl !Sync for VirtioPciDevice
impl !UnwindSafe for VirtioPciDevice
impl Freeze for VirtioPciDevice
impl Send for VirtioPciDevice
impl Unpin for VirtioPciDevice
impl UnsafeUnpin for VirtioPciDevice
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
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]