#[non_exhaustive]pub enum OverBudgetAction {
Drop,
SkipStage,
Degrade,
DefaultOnTimeout,
}Expand description
Action to take when budgets or deadlines are breached.
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.
Drop
Drop the message(s).
SkipStage
Skip the stage and signal upstream (if applicable).
Degrade
Degrade to a faster path (e.g., quantized model).
DefaultOnTimeout
Emit a default value.
Trait Implementations§
Source§impl Clone for OverBudgetAction
impl Clone for OverBudgetAction
Source§fn clone(&self) -> OverBudgetAction
fn clone(&self) -> OverBudgetAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OverBudgetAction
impl Debug for OverBudgetAction
Source§impl PartialEq for OverBudgetAction
impl PartialEq for OverBudgetAction
impl Copy for OverBudgetAction
impl Eq for OverBudgetAction
impl StructuralPartialEq for OverBudgetAction
Auto Trait Implementations§
impl Freeze for OverBudgetAction
impl RefUnwindSafe for OverBudgetAction
impl Send for OverBudgetAction
impl Sync for OverBudgetAction
impl Unpin for OverBudgetAction
impl UnsafeUnpin for OverBudgetAction
impl UnwindSafe for OverBudgetAction
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