pub enum DegradationDecision {
Allow,
Throttle,
Reject,
}Expand description
Result of a graceful degradation decision.
Variants§
Allow
Allow the operation to proceed normally.
Throttle
Throttle: reduce batch sizes or concurrency.
Reject
Reject: the operation cannot proceed under current pressure.
Implementations§
Source§impl DegradationDecision
impl DegradationDecision
Sourcepub fn is_allowed(self) -> bool
pub fn is_allowed(self) -> bool
Returns true if the operation is allowed (possibly throttled).
Trait Implementations§
Source§impl Clone for DegradationDecision
impl Clone for DegradationDecision
impl Copy for DegradationDecision
Source§impl Debug for DegradationDecision
impl Debug for DegradationDecision
impl Eq for DegradationDecision
Source§impl PartialEq for DegradationDecision
impl PartialEq for DegradationDecision
impl StructuralPartialEq for DegradationDecision
Auto Trait Implementations§
impl Freeze for DegradationDecision
impl RefUnwindSafe for DegradationDecision
impl Send for DegradationDecision
impl Sync for DegradationDecision
impl Unpin for DegradationDecision
impl UnsafeUnpin for DegradationDecision
impl UnwindSafe for DegradationDecision
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