pub struct MemoryTunables<'a> { /* private fields */ }Expand description
A view into a Tunables that selects the appropriate linear-memory or
GC-heap flavor of each tunable based on a MemoryKind.
Implementations§
Source§impl<'a> MemoryTunables<'a>
impl<'a> MemoryTunables<'a>
Sourcepub fn new(tunables: &'a Tunables, kind: MemoryKind) -> Self
pub fn new(tunables: &'a Tunables, kind: MemoryKind) -> Self
Create a new MemoryTunables view.
Sourcepub fn reservation(&self) -> u64
pub fn reservation(&self) -> u64
The virtual memory reservation for this kind of memory.
Sourcepub fn guard_size(&self) -> u64
pub fn guard_size(&self) -> u64
The size of the guard page region for this kind of memory.
Sourcepub fn reservation_for_growth(&self) -> u64
pub fn reservation_for_growth(&self) -> u64
Extra virtual memory to reserve beyond the initially mapped pages for this kind of memory.
Auto Trait Implementations§
impl<'a> Freeze for MemoryTunables<'a>
impl<'a> RefUnwindSafe for MemoryTunables<'a>
impl<'a> Send for MemoryTunables<'a>
impl<'a> Sync for MemoryTunables<'a>
impl<'a> Unpin for MemoryTunables<'a>
impl<'a> UnsafeUnpin for MemoryTunables<'a>
impl<'a> UnwindSafe for MemoryTunables<'a>
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