pub struct TraceResourceId<'a> { /* private fields */ }
Expand description
A resource identifier that can be used as an argument for trace events.
Implementations§
Source§impl<'a> TraceResourceId<'a>
impl<'a> TraceResourceId<'a>
Sourcepub fn new(token: ResourceToken<'a>) -> Self
pub fn new(token: ResourceToken<'a>) -> Self
Creates a new resource id with the given value.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TraceResourceId<'a>
impl<'a> RefUnwindSafe for TraceResourceId<'a>
impl<'a> Send for TraceResourceId<'a>
impl<'a> Sync for TraceResourceId<'a>
impl<'a> Unpin for TraceResourceId<'a>
impl<'a> UnwindSafe for TraceResourceId<'a>
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.