pub struct VirtIoDevice<V: Send + Sync, const MAX_QUEUE: usize> {
pub transport: PciTransport<V>,
/* private fields */
}
Fields§
§transport: PciTransport<V>
Implementations§
source§impl<V: Send + Sync, const MAX_QUEUE: usize> VirtIoDevice<V, MAX_QUEUE>
impl<V: Send + Sync, const MAX_QUEUE: usize> VirtIoDevice<V, MAX_QUEUE>
pub fn from_transport(transport: PciTransport<V>) -> Self
pub fn init<F, FN>( &self, common_feature_mask: VirtIoFeaturesCommon, device_feature_mask: F, device_init: FN ) -> Result<(), ()>where F: VirtIoDeviceFeature, FN: FnOnce(&Self, VirtIoFeaturesCommon, F) -> Result<(), ()>,
pub fn configure_queue<F, R>(&self, qid: u16, f: F) -> Rwhere F: FnOnce(QueueScope<'_, V, MAX_QUEUE>) -> R,
pub fn get_queue(&self, qid: u16) -> Option<SpinLockGuard<'_, VirtQueue>>
Auto Trait Implementations§
impl<V, const MAX_QUEUE: usize> !RefUnwindSafe for VirtIoDevice<V, MAX_QUEUE>
impl<V, const MAX_QUEUE: usize> Send for VirtIoDevice<V, MAX_QUEUE>
impl<V, const MAX_QUEUE: usize> Sync for VirtIoDevice<V, MAX_QUEUE>
impl<V, const MAX_QUEUE: usize> Unpin for VirtIoDevice<V, MAX_QUEUE>where V: Unpin,
impl<V, const MAX_QUEUE: usize> UnwindSafe for VirtIoDevice<V, MAX_QUEUE>where V: UnwindSafe,
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,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more