pub struct ResourceTokenValue(/* private fields */);
Expand description
Holder of a value for ResourceToken
. Vends ResourceToken
instances
with the same value and the lifetime bound to the lifetime of the holder.
The Default
implementation generates a new unique value.
Implementations§
Source§impl ResourceTokenValue
impl ResourceTokenValue
Sourcepub fn token(&self) -> ResourceToken<'_>
pub fn token(&self) -> ResourceToken<'_>
Creates a new token.
Trait Implementations§
Source§impl Debug for ResourceTokenValue
impl Debug for ResourceTokenValue
Auto Trait Implementations§
impl Freeze for ResourceTokenValue
impl RefUnwindSafe for ResourceTokenValue
impl Send for ResourceTokenValue
impl Sync for ResourceTokenValue
impl Unpin for ResourceTokenValue
impl UnwindSafe for ResourceTokenValue
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
Source§impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
impl<L, T> UnlockedAccess<L> for Twhere
L: UnlockedAccessMarkerFor<T>,
Source§type Data = <L as UnlockedAccessMarkerFor<T>>::Data
type Data = <L as UnlockedAccessMarkerFor<T>>::Data
The type of state being accessed.
Source§type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data
where
T: 'l
type Guard<'l> = &'l <L as UnlockedAccessMarkerFor<T>>::Data where T: 'l
A guard providing read access to the data.
Source§fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
fn access(&self) -> <T as UnlockedAccess<L>>::Guard<'_>
How to access the state.