pub enum BudgetAllocationError {
ZeroLimit,
}Expand description
Error returned when a BudgetAllocation is constructed with invalid values.
Variants§
ZeroLimit
Budget limit must be greater than zero.
Trait Implementations§
Source§impl Clone for BudgetAllocationError
impl Clone for BudgetAllocationError
Source§fn clone(&self) -> BudgetAllocationError
fn clone(&self) -> BudgetAllocationError
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 BudgetAllocationError
impl Debug for BudgetAllocationError
Source§impl Display for BudgetAllocationError
impl Display for BudgetAllocationError
Source§impl Error for BudgetAllocationError
impl Error for BudgetAllocationError
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()
Source§impl PartialEq for BudgetAllocationError
impl PartialEq for BudgetAllocationError
impl Eq for BudgetAllocationError
impl StructuralPartialEq for BudgetAllocationError
Auto Trait Implementations§
impl Freeze for BudgetAllocationError
impl RefUnwindSafe for BudgetAllocationError
impl Send for BudgetAllocationError
impl Sync for BudgetAllocationError
impl Unpin for BudgetAllocationError
impl UnsafeUnpin for BudgetAllocationError
impl UnwindSafe for BudgetAllocationError
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