pub enum Basis {
Job {
runs: u64,
peak: JobPeak,
},
Profile {
runs: u64,
},
ProfileMax {
runs: u64,
},
Overran {
until: u64,
},
Cap,
Unpredictable {
until: u64,
},
Unmeasured,
}Expand description
What a runner reserved goes by, in the order measured admission falls back.
Variants§
Job
The job’s own runs, plus the margin: with [sizing] min_jobs of them, their p95 peak; with fewer, their
largest, once admission::OWN_RUNS of them succeeded, its profile has min_jobs runs and no other copy of
the job is queued or running.
Fields
Profile
Too few runs of the job for Job but enough of its profile: the larger of the profile’s p95 peak and the
job’s own largest, plus the margin.
ProfileMax
No run of the job yet but enough of its profile: the profile’s largest peak plus the margin, since a new job may be its heaviest.
Overran
A run of the job among its recent runs went past what it reserved: the job’s largest peak plus the margin.
Fields
Cap
The cap: admission by caps, or too few runs of the job and of its profile.
Unpredictable
The cap: a run of the job ran out of memory at its cap or was killed for memory, and fewer than 3 of its runs since succeeded clear of it.
Unmeasured
The cap: measured admission had no recent sample of the slice’s memory to check.
Trait Implementations§
impl Copy for Basis
Source§impl<'de> Deserialize<'de> for Basis
impl<'de> Deserialize<'de> for Basis
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for Basis
impl StructuralPartialEq for Basis
Auto Trait Implementations§
impl Freeze for Basis
impl RefUnwindSafe for Basis
impl Send for Basis
impl Sync for Basis
impl Unpin for Basis
impl UnsafeUnpin for Basis
impl UnwindSafe for Basis
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.