pub struct Eligible {
pub utilization: Option<f64>,
pub budget_reset_ms: Option<u64>,
pub anchored: Option<bool>,
pub tier: u8,
pub graced: bool,
}Expand description
Eligible-account summary produced by evaluate.
Fields§
§utilization: Option<f64>Max utilization over applicable windows (None = proven-not-limited only).
budget_reset_ms: Option<u64>Reset instant of the budget window (see budget_window), if the
provider reports one that lies in the future. A reset at or before
now_ms is not evidence of a new window and is reported as None.
anchored: Option<bool>Whether the budget window’s reset is a fixed instant (Some(true))
or slides with the observation because the window has not been
started by a first use yet (Some(false), see is_unanchored).
None when there is no budget reset to classify.
tier: u8Priority tier under Strategy::SoonestReset, computed for every
eligible seat regardless of strategy so any ranking can be explained:
1 = anchored and resetting within the urgent horizon (capacity about
to be lost), 2 = unanchored (using it starts the clock), 3 = anchored
beyond the horizon (earliest deadline first), 4 = no reset evidence
(headroom proven, deadline unknown). Unknown anchoring with a known
reset is treated as anchored.
graced: boolEligible on a last good reading because its current usage read
failed transiently (see SelectionRequest::grace).
Trait Implementations§
impl StructuralPartialEq for Eligible
Auto Trait Implementations§
impl Freeze for Eligible
impl RefUnwindSafe for Eligible
impl Send for Eligible
impl Sync for Eligible
impl Unpin for Eligible
impl UnsafeUnpin for Eligible
impl UnwindSafe for Eligible
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.