pub struct RefillTokens(pub u64);Expand description
Tokens accrued since the last refill, to be added to available this call.
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for RefillTokens
impl Clone for RefillTokens
Source§fn clone(&self) -> RefillTokens
fn clone(&self) -> RefillTokens
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RefillTokens
Source§impl Debug for RefillTokens
impl Debug for RefillTokens
Source§impl Display for RefillTokens
impl Display for RefillTokens
impl Eq for RefillTokens
Source§impl From<RefillTokens> for u64
impl From<RefillTokens> for u64
Source§fn from(value: RefillTokens) -> Self
fn from(value: RefillTokens) -> Self
Converts to this type from the input type.
Source§impl From<u64> for RefillTokens
impl From<u64> for RefillTokens
Source§impl Hash for RefillTokens
impl Hash for RefillTokens
Source§impl Ord for RefillTokens
impl Ord for RefillTokens
Source§fn cmp(&self, other: &RefillTokens) -> Ordering
fn cmp(&self, other: &RefillTokens) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RefillTokens
impl PartialEq for RefillTokens
Source§impl PartialOrd for RefillTokens
impl PartialOrd for RefillTokens
impl StructuralPartialEq for RefillTokens
Auto Trait Implementations§
impl Freeze for RefillTokens
impl RefUnwindSafe for RefillTokens
impl Send for RefillTokens
impl Sync for RefillTokens
impl Unpin for RefillTokens
impl UnsafeUnpin for RefillTokens
impl UnwindSafe for RefillTokens
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