pub enum TierBudgetSpec {
Auto,
Percent(u8),
Bytes(u64),
}Expand description
One transparent-tiering RAM budget, as configured. Resolution to
bytes probes the OS memory bound through kevy-sys (the sanctioned
boundary).
Variants§
Auto
0.70 × the detected memory bound (cgroup v2 memory.max /
/proc/meminfo MemAvailable on Linux; hw.memsize on macOS).
Percent(u8)
That percent of the detected bound (validated 1..=100 at open).
Bytes(u64)
Absolute bytes.
Trait Implementations§
Source§impl Clone for TierBudgetSpec
impl Clone for TierBudgetSpec
Source§fn clone(&self) -> TierBudgetSpec
fn clone(&self) -> TierBudgetSpec
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 TierBudgetSpec
Source§impl Debug for TierBudgetSpec
impl Debug for TierBudgetSpec
impl Eq for TierBudgetSpec
Source§impl PartialEq for TierBudgetSpec
impl PartialEq for TierBudgetSpec
impl StructuralPartialEq for TierBudgetSpec
Auto Trait Implementations§
impl Freeze for TierBudgetSpec
impl RefUnwindSafe for TierBudgetSpec
impl Send for TierBudgetSpec
impl Sync for TierBudgetSpec
impl Unpin for TierBudgetSpec
impl UnsafeUnpin for TierBudgetSpec
impl UnwindSafe for TierBudgetSpec
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