Struct crosvm_direct::crosvm::sys::unix::config::VfioCommand
source · [−]pub struct VfioCommand {
pub vfio_path: PathBuf,
pub dev_type: VfioType,
pub params: BTreeMap<String, String>,
}
Expand description
VFIO device structure for creating a new instance based on command line options.
Fields
vfio_path: PathBuf
dev_type: VfioType
params: BTreeMap<String, String>
Implementations
sourceimpl VfioCommand
impl VfioCommand
pub fn new(dev_type: VfioType, path: &str) -> Result<VfioCommand, String>
fn validate_params(kind: &str, value: &str) -> Result<(), String>
pub fn get_type(&self) -> VfioType
pub fn guest_address(&self) -> Option<PciAddress>
pub fn iommu_dev_type(&self) -> IommuDevType
pub fn is_intel_lpss(&self) -> bool
Trait Implementations
sourceimpl<'de> Deserialize<'de> for VfioCommand
impl<'de> Deserialize<'de> for VfioCommand
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for VfioCommand
impl Serialize for VfioCommand
Auto Trait Implementations
impl RefUnwindSafe for VfioCommand
impl Send for VfioCommand
impl Sync for VfioCommand
impl Unpin for VfioCommand
impl UnwindSafe for VfioCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more