Enum WorkBudgetError
pub enum WorkBudgetError {
CostOverflow {
items: u64,
cost_per_item: u64,
},
Exhausted {
requested: u64,
remaining: u64,
},
RefundExceedsSpent {
requested: u64,
spent: u64,
},
}Expand description
A checked reservation or refund could not be applied.
Variants§
CostOverflow
The requested total cost cannot be represented as u64.
Exhausted
An atomic request exceeds the currently available allowance.
RefundExceedsSpent
A refund exceeds the net spend in the current budget period.
Trait Implementations§
§impl Clone for WorkBudgetError
impl Clone for WorkBudgetError
§fn clone(&self) -> WorkBudgetError
fn clone(&self) -> WorkBudgetError
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 more§impl Debug for WorkBudgetError
impl Debug for WorkBudgetError
§impl Display for WorkBudgetError
impl Display for WorkBudgetError
§impl Error for WorkBudgetError
impl Error for WorkBudgetError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl PartialEq for WorkBudgetError
impl PartialEq for WorkBudgetError
impl Copy for WorkBudgetError
impl Eq for WorkBudgetError
impl StructuralPartialEq for WorkBudgetError
Auto Trait Implementations§
impl Freeze for WorkBudgetError
impl RefUnwindSafe for WorkBudgetError
impl Send for WorkBudgetError
impl Sync for WorkBudgetError
impl Unpin for WorkBudgetError
impl UnwindSafe for WorkBudgetError
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