Struct no_deadlocks::lock_manager::LockRepresentation
source · pub struct LockRepresentation { /* private fields */ }
Implementations§
source§impl LockRepresentation
impl LockRepresentation
pub fn new() -> Self
sourcepub fn try_write_lock(&mut self) -> bool
pub fn try_write_lock(&mut self) -> bool
Returns true
if write_lock succeeded
pub fn unsubscribe(&mut self)
pub fn subscribe_write(&mut self)
sourcepub fn try_read_lock(&mut self) -> bool
pub fn try_read_lock(&mut self) -> bool
Returns true
if read_lock succeeded
pub fn subscribe_read(&mut self)
pub fn unlock(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for LockRepresentation
impl Send for LockRepresentation
impl Sync for LockRepresentation
impl Unpin for LockRepresentation
impl UnwindSafe for LockRepresentation
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