pub struct RawBlockDevice {
pub id: String,
pub path: PathBuf,
pub read_only: bool,
}Expand description
An explicitly raw auxiliary block device attached to a MicroVM.
The format is part of the type contract, so the shim never probes a path after guest access. Device order is stable: root block disks are attached first, followed by this list in order.
Fields§
§id: String§path: PathBuf§read_only: boolImplementations§
Trait Implementations§
Source§impl Clone for RawBlockDevice
impl Clone for RawBlockDevice
Source§fn clone(&self) -> RawBlockDevice
fn clone(&self) -> RawBlockDevice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RawBlockDevice
impl Debug for RawBlockDevice
Source§impl<'de> Deserialize<'de> for RawBlockDevice
impl<'de> Deserialize<'de> for RawBlockDevice
Source§fn 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
impl Eq for RawBlockDevice
Source§impl PartialEq for RawBlockDevice
impl PartialEq for RawBlockDevice
Source§impl Serialize for RawBlockDevice
impl Serialize for RawBlockDevice
impl StructuralPartialEq for RawBlockDevice
Auto Trait Implementations§
impl Freeze for RawBlockDevice
impl RefUnwindSafe for RawBlockDevice
impl Send for RawBlockDevice
impl Sync for RawBlockDevice
impl Unpin for RawBlockDevice
impl UnsafeUnpin for RawBlockDevice
impl UnwindSafe for RawBlockDevice
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.