pub enum Claim {
Took {
taken: i64,
after: i64,
},
Exhausted,
}Expand description
What Orbital::add_until did. A bounded add either takes some of what
is left or finds nothing left; there is no third answer, and no value
past the limit is ever written.
Variants§
Took
taken can be less than asked for: the last caller gets the
remainder rather than being refused, so no unit goes unclaimed.
Exhausted
The limit was already reached. Nothing was added, nothing is left.
Trait Implementations§
impl Copy for Claim
impl Eq for Claim
impl StructuralPartialEq for Claim
Auto Trait Implementations§
impl Freeze for Claim
impl RefUnwindSafe for Claim
impl Send for Claim
impl Sync for Claim
impl Unpin for Claim
impl UnsafeUnpin for Claim
impl UnwindSafe for Claim
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