#[non_exhaustive]pub enum BenchmarkProgress {
Draining {
active_leases: u32,
},
Measuring {
measured_secs: u64,
needed_secs: u64,
cpu_avg_pct: f32,
gpu_avg_pct: f32,
},
Noisy {
cpu_avg_pct: f32,
gpu_avg_pct: f32,
cpu_limit_pct: f32,
gpu_limit_pct: f32,
grant_anyway_in_secs: u64,
},
}Expand description
Where a waiting benchmark lease stands, so its holder can report progress.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Draining
Other leases are still active; nothing new starts until they end.
Measuring
The machine has drained and its background load is being averaged.
Fields
Noisy
The average is above the quiet limits. The lease is granted anyway, marked as not
quiet, once grant_anyway_in_secs have passed.
Fields
Trait Implementations§
Source§impl Clone for BenchmarkProgress
impl Clone for BenchmarkProgress
impl Copy for BenchmarkProgress
Source§impl Debug for BenchmarkProgress
impl Debug for BenchmarkProgress
Source§impl<'de> Deserialize<'de> for BenchmarkProgress
impl<'de> Deserialize<'de> for BenchmarkProgress
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BenchmarkProgress
impl PartialEq for BenchmarkProgress
Source§impl Serialize for BenchmarkProgress
impl Serialize for BenchmarkProgress
impl StructuralPartialEq for BenchmarkProgress
Auto Trait Implementations§
impl Forget for BenchmarkProgress
impl Freeze for BenchmarkProgress
impl RefUnwindSafe for BenchmarkProgress
impl Send for BenchmarkProgress
impl Sync for BenchmarkProgress
impl Unpin for BenchmarkProgress
impl UnsafeUnpin for BenchmarkProgress
impl UnwindSafe for BenchmarkProgress
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