pub enum ViommuAlloc {
Allocated(u32),
Incompatible,
}Expand description
Outcome of IommufdCtx::viommu_alloc.
Variants§
Allocated(u32)
The kernel-assigned vIOMMU object ID.
Incompatible
The nesting parent belongs to a different physical IOMMU than the device. Callers may probe another candidate parent.
Trait Implementations§
Source§impl Clone for ViommuAlloc
impl Clone for ViommuAlloc
Source§fn clone(&self) -> ViommuAlloc
fn clone(&self) -> ViommuAlloc
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ViommuAlloc
impl Debug for ViommuAlloc
Source§impl PartialEq for ViommuAlloc
impl PartialEq for ViommuAlloc
impl Copy for ViommuAlloc
impl Eq for ViommuAlloc
impl StructuralPartialEq for ViommuAlloc
Auto Trait Implementations§
impl Freeze for ViommuAlloc
impl RefUnwindSafe for ViommuAlloc
impl Send for ViommuAlloc
impl Sync for ViommuAlloc
impl Unpin for ViommuAlloc
impl UnsafeUnpin for ViommuAlloc
impl UnwindSafe for ViommuAlloc
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