pub enum Spending {
WithinBudget,
Warn {
reminder: String,
limit: u64,
},
Exhausted {
limit: u64,
},
}Expand description
Whether the turn may keep spending.
Variants§
WithinBudget
Warn
Close enough to say so. The turn continues.
Fields
Exhausted
The turn ends, reporting budget_exceeded.
Trait Implementations§
impl Eq for Spending
impl StructuralPartialEq for Spending
Auto Trait Implementations§
impl Forget for Spending
impl Freeze for Spending
impl Move for Spending
impl RefUnwindSafe for Spending
impl Send for Spending
impl Sync for Spending
impl Unpin for Spending
impl UnsafeUnpin for Spending
impl UnwindSafe for Spending
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