pub struct MemoryPolicyBuilder { /* private fields */ }Expand description
Builder for MemoryPolicy.
Implementations§
Source§impl MemoryPolicyBuilder
impl MemoryPolicyBuilder
Sourcepub fn modes<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn modes<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
modes is the list of known memory policy modes, e.g., “MPOL_INTERLEAVE”.
Sourcepub fn flags<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
pub fn flags<VALUE: Into<Vec<String>>>(self, value: VALUE) -> Self
flags is the list of known memory policy mode flags, e.g., “MPOL_F_STATIC_NODES”.
Sourcepub fn build(self) -> Result<MemoryPolicy, OciSpecError>
pub fn build(self) -> Result<MemoryPolicy, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemoryPolicyBuilder
impl RefUnwindSafe for MemoryPolicyBuilder
impl Send for MemoryPolicyBuilder
impl Sync for MemoryPolicyBuilder
impl Unpin for MemoryPolicyBuilder
impl UnwindSafe for MemoryPolicyBuilder
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