Struct kernel::sync::SeqLockReadGuard
source · [−]Expand description
Allows read-side access to data protected by a sequential lock.
Implementations
sourceimpl<L: Lock + ?Sized> SeqLockReadGuard<'_, L>
impl<L: Lock + ?Sized> SeqLockReadGuard<'_, L>
sourcepub fn need_retry(&self) -> bool
pub fn need_retry(&self) -> bool
Determine if the callers needs to retry reading values.
It returns true
when a concurrent writer ran between the guard being created and
Self::need_retry
being called.
Trait Implementations
Auto Trait Implementations
impl<'a, L> !RefUnwindSafe for SeqLockReadGuard<'a, L>
impl<'a, L> Send for SeqLockReadGuard<'a, L> where
L: Sync,
<L as Lock<WriteLock>>::Inner: Sync,
impl<'a, L> Sync for SeqLockReadGuard<'a, L> where
L: Sync,
<L as Lock<WriteLock>>::Inner: Sync,
impl<'a, L: ?Sized> Unpin for SeqLockReadGuard<'a, L>
impl<'a, L> !UnwindSafe for SeqLockReadGuard<'a, L>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more