pub enum BudgetError {
Limit(LimitExceeded),
Overflow(u64),
}Expand description
A failed cumulative budget charge.
Variants§
Limit(LimitExceeded)
A configured resource limit was exceeded.
Overflow(u64)
Adding to the given cumulative usage overflowed u64.
Trait Implementations§
Source§impl Debug for BudgetError
impl Debug for BudgetError
Source§impl Display for BudgetError
impl Display for BudgetError
Source§impl Error for BudgetError
impl Error for BudgetError
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()
Source§impl From<BudgetError> for Error
impl From<BudgetError> for Error
Source§fn from(error: BudgetError) -> Self
fn from(error: BudgetError) -> Self
Converts to this type from the input type.
Source§impl From<LimitExceeded> for BudgetError
impl From<LimitExceeded> for BudgetError
Source§fn from(source: LimitExceeded) -> Self
fn from(source: LimitExceeded) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Forget for BudgetError
impl Freeze for BudgetError
impl Move for BudgetError
impl RefUnwindSafe for BudgetError
impl Send for BudgetError
impl Sync for BudgetError
impl Unpin for BudgetError
impl UnsafeUnpin for BudgetError
impl UnwindSafe for BudgetError
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