pub enum BudgetSource {
Explicit,
Env,
Probed {
available: u64,
fraction: f64,
},
}Expand description
Which rule produced a budget.
Variants§
Explicit
The caller passed the number.
Env
DEVICE_BUDGET_ENV supplied it.
Probed
available_bytes * fraction, from the device’s live probe.
Trait Implementations§
Source§impl Clone for BudgetSource
impl Clone for BudgetSource
impl Copy for BudgetSource
Source§impl Debug for BudgetSource
impl Debug for BudgetSource
Source§impl PartialEq for BudgetSource
impl PartialEq for BudgetSource
impl StructuralPartialEq for BudgetSource
Auto Trait Implementations§
impl Forget for BudgetSource
impl Freeze for BudgetSource
impl RefUnwindSafe for BudgetSource
impl Send for BudgetSource
impl Sync for BudgetSource
impl Unpin for BudgetSource
impl UnsafeUnpin for BudgetSource
impl UnwindSafe for BudgetSource
Blanket Implementations§
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more