pub enum TransparentHugePagePolicy {
Always,
Madvise,
Never,
}Expand description
Guest transparent huge-page policy applied through the kernel command line.
Variants§
Always
Transparently use huge pages for eligible anonymous mappings.
Madvise
Use huge pages only for mappings that explicitly request them.
Never
Disable transparent huge pages for anonymous mappings.
Implementations§
Trait Implementations§
Source§impl Clone for TransparentHugePagePolicy
impl Clone for TransparentHugePagePolicy
Source§fn clone(&self) -> TransparentHugePagePolicy
fn clone(&self) -> TransparentHugePagePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransparentHugePagePolicy
Source§impl Debug for TransparentHugePagePolicy
impl Debug for TransparentHugePagePolicy
Source§impl Default for TransparentHugePagePolicy
impl Default for TransparentHugePagePolicy
Source§fn default() -> TransparentHugePagePolicy
fn default() -> TransparentHugePagePolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransparentHugePagePolicy
impl<'de> Deserialize<'de> for TransparentHugePagePolicy
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 Display for TransparentHugePagePolicy
impl Display for TransparentHugePagePolicy
impl Eq for TransparentHugePagePolicy
Source§impl FromStr for TransparentHugePagePolicy
impl FromStr for TransparentHugePagePolicy
impl StructuralPartialEq for TransparentHugePagePolicy
Auto Trait Implementations§
impl Freeze for TransparentHugePagePolicy
impl RefUnwindSafe for TransparentHugePagePolicy
impl Send for TransparentHugePagePolicy
impl Sync for TransparentHugePagePolicy
impl Unpin for TransparentHugePagePolicy
impl UnsafeUnpin for TransparentHugePagePolicy
impl UnwindSafe for TransparentHugePagePolicy
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