pub struct ReadLock(/* private fields */);
Expand description
ReadLock: the requests who get it need to wait until it is released
Implementations§
Source§impl ReadLock
impl ReadLock
Sourcepub fn expired(&self) -> bool
pub fn expired(&self) -> bool
Whether the lock is expired, e.g., the writer has been holding the lock for too long
Sourcepub fn lock_status(&self) -> LockStatus
pub fn lock_status(&self) -> LockStatus
The current status of the lock
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReadLock
impl RefUnwindSafe for ReadLock
impl Send for ReadLock
impl Sync for ReadLock
impl Unpin for ReadLock
impl UnwindSafe for ReadLock
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