pub struct PmemBuilder { /* private fields */ }
Expand description
Builder for Pmem
.
Implementations§
Source§impl PmemBuilder
impl PmemBuilder
pub fn file<VALUE: Into<PathBuf>>(&mut self, value: VALUE) -> &mut Self
pub fn size<VALUE: Into<usize>>(&mut self, value: VALUE) -> &mut Self
pub fn iommu<VALUE: Into<OnOff>>(&mut self, value: VALUE) -> &mut Self
pub fn discard_writes<VALUE: Into<OnOff>>(&mut self, value: VALUE) -> &mut Self
pub fn id<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn pci_segment<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Trait Implementations§
Source§impl Clone for PmemBuilder
impl Clone for PmemBuilder
Source§fn clone(&self) -> PmemBuilder
fn clone(&self) -> PmemBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for PmemBuilder
impl RefUnwindSafe for PmemBuilder
impl Send for PmemBuilder
impl Sync for PmemBuilder
impl Unpin for PmemBuilder
impl UnwindSafe for PmemBuilder
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