pub struct Memory {
pub size: Option<ByteSize>,
pub mergeable: Option<OnOff>,
pub shared: Option<OnOff>,
pub hugepages: Option<OnOff>,
pub hugepage_size: Option<ByteSize>,
pub hotplug_method: Option<MemoryHotplugMethod>,
pub hotplug_size: Option<ByteSize>,
pub hotplugged_size: Option<ByteSize>,
pub prefault: Option<OnOff>,
pub thp: Option<OnOff>,
}
Fields§
§size: Option<ByteSize>
§mergeable: Option<OnOff>
§hugepages: Option<OnOff>
§hugepage_size: Option<ByteSize>
§hotplug_method: Option<MemoryHotplugMethod>
§hotplug_size: Option<ByteSize>
§hotplugged_size: Option<ByteSize>
§prefault: Option<OnOff>
§thp: Option<OnOff>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Memory
impl<'de> Deserialize<'de> for Memory
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 ToCommand for Memory
impl ToCommand for Memory
fn to_command(&self) -> Vec<String>
fn to_single_command(&self) -> String
impl Eq for Memory
impl StructuralPartialEq for Memory
Auto Trait Implementations§
impl Freeze for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
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