Struct lock_order::lock::OrderedLockRef
source · pub struct OrderedLockRef<'a, T>(/* private fields */);
Expand description
A borrowed order-aware lock.
Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for OrderedLockRef<'a, T>
impl<'a, T> RefUnwindSafe for OrderedLockRef<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for OrderedLockRef<'a, T>where
T: Sync,
impl<'a, T> Sync for OrderedLockRef<'a, T>where
T: Sync,
impl<'a, T> Unpin for OrderedLockRef<'a, T>
impl<'a, T> UnwindSafe for OrderedLockRef<'a, T>where
T: RefUnwindSafe,
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>,
§type Data = <L as UnlockedAccessMarkerFor<T>>::Data
type Data = <L as UnlockedAccessMarkerFor<T>>::Data
The type of state being accessed.
§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.