#[non_exhaustive]pub enum Readiness {
NotReady,
ReadyUnderPressure,
Ready,
}Expand description
Readiness level derived from inputs and backpressure state.
Contract followed by runtimes:
NotReady: all inputs empty (no work).ReadyUnderPressure: some input available AND at least one output watermark isBetweenSoftAndHardorAtOrAboveHard.Ready: some input available AND all outputs areBelowSoft.
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.
NotReady
No input available or blocked by backpressure.
ReadyUnderPressure
Input(s) available but under pressure.
Ready
Input(s) available and not under pressure.
Trait Implementations§
impl Copy for Readiness
impl Eq for Readiness
impl StructuralPartialEq for Readiness
Auto Trait Implementations§
impl Freeze for Readiness
impl RefUnwindSafe for Readiness
impl Send for Readiness
impl Sync for Readiness
impl Unpin for Readiness
impl UnsafeUnpin for Readiness
impl UnwindSafe for Readiness
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