pub struct LinuxMemoryPolicyBuilder { /* private fields */ }Expand description
Builder for LinuxMemoryPolicy.
Implementations§
Source§impl LinuxMemoryPolicyBuilder
impl LinuxMemoryPolicyBuilder
Sourcepub fn mode<VALUE: Into<MemoryPolicyModeType>>(self, value: VALUE) -> Self
pub fn mode<VALUE: Into<MemoryPolicyModeType>>(self, value: VALUE) -> Self
Mode for the set_mempolicy syscall.
Sourcepub fn nodes<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn nodes<VALUE: Into<String>>(self, value: VALUE) -> Self
Nodes representing the nodemask for the set_mempolicy syscall in comma separated ranges format. Format: “<node0>-<node1>,<node2>,<node3>-<node4>,…”
Sourcepub fn flags<VALUE: Into<Vec<MemoryPolicyFlagType>>>(self, value: VALUE) -> Self
pub fn flags<VALUE: Into<Vec<MemoryPolicyFlagType>>>(self, value: VALUE) -> Self
Flags for the set_mempolicy syscall.
Sourcepub fn build(self) -> Result<LinuxMemoryPolicy, OciSpecError>
pub fn build(self) -> Result<LinuxMemoryPolicy, OciSpecError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinuxMemoryPolicyBuilder
impl RefUnwindSafe for LinuxMemoryPolicyBuilder
impl Send for LinuxMemoryPolicyBuilder
impl Sync for LinuxMemoryPolicyBuilder
impl Unpin for LinuxMemoryPolicyBuilder
impl UnwindSafe for LinuxMemoryPolicyBuilder
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