pub struct GrantedTokens(pub u64);Expand description
Tokens actually granted by a consume call (<= requested).
Tuple Fields§
§0: u64Trait Implementations§
Source§impl Clone for GrantedTokens
impl Clone for GrantedTokens
Source§fn clone(&self) -> GrantedTokens
fn clone(&self) -> GrantedTokens
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 GrantedTokens
Source§impl Debug for GrantedTokens
impl Debug for GrantedTokens
Source§impl Display for GrantedTokens
impl Display for GrantedTokens
impl Eq for GrantedTokens
Source§impl From<GrantedTokens> for u64
impl From<GrantedTokens> for u64
Source§fn from(value: GrantedTokens) -> Self
fn from(value: GrantedTokens) -> Self
Converts to this type from the input type.
Source§impl From<u64> for GrantedTokens
impl From<u64> for GrantedTokens
Source§impl Hash for GrantedTokens
impl Hash for GrantedTokens
Source§impl Ord for GrantedTokens
impl Ord for GrantedTokens
Source§fn cmp(&self, other: &GrantedTokens) -> Ordering
fn cmp(&self, other: &GrantedTokens) -> 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 GrantedTokens
impl PartialEq for GrantedTokens
Source§impl PartialOrd for GrantedTokens
impl PartialOrd for GrantedTokens
impl StructuralPartialEq for GrantedTokens
Auto Trait Implementations§
impl Freeze for GrantedTokens
impl RefUnwindSafe for GrantedTokens
impl Send for GrantedTokens
impl Sync for GrantedTokens
impl Unpin for GrantedTokens
impl UnsafeUnpin for GrantedTokens
impl UnwindSafe for GrantedTokens
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