pub struct RawPmemConfig {
pub pmem_id: String,
pub path_on_host: String,
pub is_read_only: bool,
pub is_root_device: bool,
pub partuuid: Option<String>,
pub rate_limiter: Option<Value>,
}Expand description
Raw /pmem/{id} PUT body off the wire.
Fields§
§pmem_id: StringIdentifier (we re-use the drive identifier rules).
path_on_host: StringBacking-file path.
is_read_only: boolWhether the device is exposed read-only.
is_root_device: boolWhether the guest mounts this as the root device (replaces virtio-block root).
partuuid: Option<String>Optional partition UUID for root=PARTUUID=....
rate_limiter: Option<Value>Optional rate limiter passthrough.
Trait Implementations§
Source§impl Clone for RawPmemConfig
impl Clone for RawPmemConfig
Source§fn clone(&self) -> RawPmemConfig
fn clone(&self) -> RawPmemConfig
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 RawPmemConfig
impl Debug for RawPmemConfig
Source§impl<'de> Deserialize<'de> for RawPmemConfig
impl<'de> Deserialize<'de> for RawPmemConfig
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
Source§impl TryFrom<RawPmemConfig> for PmemConfig
impl TryFrom<RawPmemConfig> for PmemConfig
Auto Trait Implementations§
impl Freeze for RawPmemConfig
impl RefUnwindSafe for RawPmemConfig
impl Send for RawPmemConfig
impl Sync for RawPmemConfig
impl Unpin for RawPmemConfig
impl UnsafeUnpin for RawPmemConfig
impl UnwindSafe for RawPmemConfig
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