pub struct PmemConfig {
pub file: String,
pub size: Option<i64>,
pub iommu: Option<bool>,
pub discard_writes: Option<bool>,
pub pci_segment: Option<i32>,
pub id: Option<String>,
}
Fields§
§file: String
§size: Option<i64>
§iommu: Option<bool>
§discard_writes: Option<bool>
§pci_segment: Option<i32>
§id: Option<String>
Implementations§
Source§impl PmemConfig
impl PmemConfig
pub fn new(file: String) -> PmemConfig
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 · 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 Default for PmemConfig
impl Default for PmemConfig
Source§fn default() -> PmemConfig
fn default() -> PmemConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PmemConfig
impl<'de> Deserialize<'de> for PmemConfig
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 PartialEq for PmemConfig
impl PartialEq for PmemConfig
Source§impl Serialize for PmemConfig
impl Serialize for PmemConfig
impl StructuralPartialEq 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 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