pub enum LockInfo {
Named(String),
Addressed(usize),
}
Expand description
Lock information
This can be either a user-defined name, or an address. When using Addressed
, you should usually take
the address of the Mutex
, RwLock
or equivalent, and cast it to usize
.
Variants§
Named(String)
A user-defined name
Addressed(usize)
An address, usually the address of a Mutex
or similar cast to usize
Trait Implementations§
source§impl PartialEq for LockInfo
impl PartialEq for LockInfo
impl Eq for LockInfo
impl StructuralPartialEq for LockInfo
Auto Trait Implementations§
impl RefUnwindSafe for LockInfo
impl Send for LockInfo
impl Sync for LockInfo
impl Unpin for LockInfo
impl UnwindSafe for LockInfo
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