pub struct Spec {
pub cdi_spec: Spec,
pub devices: BTreeMap<String, Device>,
/* private fields */
}Fields§
§cdi_spec: Spec§devices: BTreeMap<String, Device>Implementations§
Source§impl Spec
impl Spec
pub fn get_vendor(&self) -> String
pub fn get_class(&self) -> String
pub fn get_devices(&self) -> BTreeMap<String, Device>
pub fn get_device(&self, key: &str) -> Option<&Device>
pub fn get_path(&self) -> String
pub fn get_priority(&self) -> i32
pub fn edits(&mut self) -> Option<ContainerEdits>
pub fn validate(&mut self) -> Result<BTreeMap<String, Device>>
pub fn apply_edits(&mut self, oci_spec: &mut Spec) -> Result<()>
Trait Implementations§
impl Eq for Spec
impl StructuralPartialEq for Spec
Auto Trait Implementations§
impl Freeze for Spec
impl RefUnwindSafe for Spec
impl Send for Spec
impl Sync for Spec
impl Unpin for Spec
impl UnwindSafe for Spec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.