pub enum RestartDenial {
BudgetExceeded {
restarts_in_window: usize,
replacements_requested: usize,
maximum_restarts: u32,
},
}Expand description
Why an otherwise eligible replacement set was denied.
The vocabulary is deliberately exhaustive. Additional restart gates must expose their concrete denial here (or in a future statically composed sum) rather than hiding it behind an open or erased reason type.
Variants§
BudgetExceeded
The replacement set would exceed the configured restart budget.
Trait Implementations§
Source§impl Clone for RestartDenial
impl Clone for RestartDenial
Source§fn clone(&self) -> RestartDenial
fn clone(&self) -> RestartDenial
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 RestartDenial
impl Debug for RestartDenial
Source§impl PartialEq for RestartDenial
impl PartialEq for RestartDenial
impl Copy for RestartDenial
impl Eq for RestartDenial
impl StructuralPartialEq for RestartDenial
Auto Trait Implementations§
impl Freeze for RestartDenial
impl RefUnwindSafe for RestartDenial
impl Send for RestartDenial
impl Sync for RestartDenial
impl Unpin for RestartDenial
impl UnsafeUnpin for RestartDenial
impl UnwindSafe for RestartDenial
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