#[non_exhaustive]pub struct PmemConfig {
pub pmem_id: DriveId,
pub path_on_host: SafePath,
pub is_read_only: bool,
pub is_root_device: bool,
pub partuuid: Option<String>,
pub rate_limiter: Option<Value>,
}Expand description
Validated /pmem/{id} PUT body.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pmem_id: DriveIdValidated identifier.
path_on_host: SafePathValidated host path.
is_read_only: boolRead-only flag.
is_root_device: boolRoot-device flag.
partuuid: Option<String>Validated partition UUID.
rate_limiter: Option<Value>Optional rate limiter passthrough.
Trait Implementations§
Source§impl Clone for PmemConfig
impl Clone for PmemConfig
Source§fn clone(&self) -> PmemConfig
fn clone(&self) -> PmemConfig
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 PmemConfig
impl Debug for PmemConfig
Source§impl Serialize for PmemConfig
impl Serialize for PmemConfig
Source§impl TryFrom<RawPmemConfig> for PmemConfig
impl TryFrom<RawPmemConfig> for PmemConfig
Auto Trait Implementations§
impl Freeze for PmemConfig
impl RefUnwindSafe for PmemConfig
impl Send for PmemConfig
impl Sync for PmemConfig
impl Unpin for PmemConfig
impl UnsafeUnpin for PmemConfig
impl UnwindSafe for PmemConfig
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