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.