#[non_exhaustive]pub struct HugePages {
pub page_size: Bytes,
pub total: u64,
pub free: u64,
pub reserved: u64,
pub transparent: Option<TransparentHugePages>,
pub large_page_minimum: Option<Bytes>,
}Expand description
Explicit huge pages and the transparent-huge-page mode.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.page_size: BytesThe default huge page size (2 MiB on x86_64).
total: u64Huge pages in the pool.
free: u64Free huge pages.
reserved: u64Reserved but not yet allocated.
transparent: Option<TransparentHugePages>The transparent-huge-page mode (Linux).
large_page_minimum: Option<Bytes>The smallest large page (Windows GetLargePageMinimum).
Trait Implementations§
impl Copy for HugePages
impl Eq for HugePages
impl StructuralPartialEq for HugePages
Auto Trait Implementations§
impl Freeze for HugePages
impl RefUnwindSafe for HugePages
impl Send for HugePages
impl Sync for HugePages
impl Unpin for HugePages
impl UnsafeUnpin for HugePages
impl UnwindSafe for HugePages
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