pub struct LinuxMemoryPolicy { /* private fields */ }Expand description
LinuxMemoryPolicy represents input for the set_mempolicy syscall.
Implementations§
Source§impl LinuxMemoryPolicy
impl LinuxMemoryPolicy
Sourcepub fn mode(&self) -> MemoryPolicyModeType
pub fn mode(&self) -> MemoryPolicyModeType
Mode for the set_mempolicy syscall.
Source§impl LinuxMemoryPolicy
impl LinuxMemoryPolicy
Sourcepub fn flags_mut(&mut self) -> &mut Option<Vec<MemoryPolicyFlagType>>
pub fn flags_mut(&mut self) -> &mut Option<Vec<MemoryPolicyFlagType>>
Flags for the set_mempolicy syscall.
Source§impl LinuxMemoryPolicy
impl LinuxMemoryPolicy
Sourcepub fn set_mode(&mut self, val: MemoryPolicyModeType) -> &mut Self
pub fn set_mode(&mut self, val: MemoryPolicyModeType) -> &mut Self
Mode for the set_mempolicy syscall.
Sourcepub fn set_nodes(&mut self, val: Option<String>) -> &mut Self
pub fn set_nodes(&mut self, val: Option<String>) -> &mut Self
Nodes representing the nodemask for the set_mempolicy syscall in comma separated ranges format. Format: “<node0>-<node1>,<node2>,<node3>-<node4>,…”
Sourcepub fn set_flags(&mut self, val: Option<Vec<MemoryPolicyFlagType>>) -> &mut Self
pub fn set_flags(&mut self, val: Option<Vec<MemoryPolicyFlagType>>) -> &mut Self
Flags for the set_mempolicy syscall.
Trait Implementations§
Source§impl Clone for LinuxMemoryPolicy
impl Clone for LinuxMemoryPolicy
Source§fn clone(&self) -> LinuxMemoryPolicy
fn clone(&self) -> LinuxMemoryPolicy
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 LinuxMemoryPolicy
impl Debug for LinuxMemoryPolicy
Source§impl Default for LinuxMemoryPolicy
impl Default for LinuxMemoryPolicy
Source§impl<'de> Deserialize<'de> for LinuxMemoryPolicy
impl<'de> Deserialize<'de> for LinuxMemoryPolicy
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 LinuxMemoryPolicy
impl PartialEq for LinuxMemoryPolicy
Source§impl Serialize for LinuxMemoryPolicy
impl Serialize for LinuxMemoryPolicy
impl Eq for LinuxMemoryPolicy
impl StructuralPartialEq for LinuxMemoryPolicy
Auto Trait Implementations§
impl Freeze for LinuxMemoryPolicy
impl RefUnwindSafe for LinuxMemoryPolicy
impl Send for LinuxMemoryPolicy
impl Sync for LinuxMemoryPolicy
impl Unpin for LinuxMemoryPolicy
impl UnwindSafe for LinuxMemoryPolicy
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