#[non_exhaustive]pub enum DecoderPressure {
Starting,
ConsumerBound {
idle_worker_fraction: f32,
},
DecoderBound {
queued_tasks: usize,
},
Converged {
at_workers: usize,
},
Idle,
Finished,
}Expand description
Current high-level constraint on decoder progress.
This is an approximate observation assembled from relaxed atomic loads. It describes rapidgzip’s own task state, not operating-system CPU accounting.
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.
Starting
Input classification or worker startup is still in progress.
ConsumerBound
The final decoded-output handoff is blocked by its consumer.
DecoderBound
All admitted workers are busy while runnable work remains queued.
Converged
Empirical calibration selected a stable worker count.
Idle
No decoder task was running or immediately runnable when sampled.
Finished
The complete compressed stream has reached a terminal state.
Trait Implementations§
Source§impl Clone for DecoderPressure
impl Clone for DecoderPressure
Source§fn clone(&self) -> DecoderPressure
fn clone(&self) -> DecoderPressure
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 DecoderPressure
Source§impl Debug for DecoderPressure
impl Debug for DecoderPressure
Source§impl PartialEq for DecoderPressure
impl PartialEq for DecoderPressure
impl StructuralPartialEq for DecoderPressure
Auto Trait Implementations§
impl Freeze for DecoderPressure
impl RefUnwindSafe for DecoderPressure
impl Send for DecoderPressure
impl Sync for DecoderPressure
impl Unpin for DecoderPressure
impl UnsafeUnpin for DecoderPressure
impl UnwindSafe for DecoderPressure
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