pub struct LockInfo {
pub id: u64,
pub lock_type: LockType,
pub owner: Option<u64>,
pub waiters: Vec<u64>,
pub acquired_at: Option<Instant>,
}Expand description
Lock information.
Fields§
§id: u64Lock ID.
lock_type: LockTypeLock type.
owner: Option<u64>Owner thread ID (if held).
waiters: Vec<u64>Waiters (thread IDs).
acquired_at: Option<Instant>Acquisition time.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LockInfo
impl RefUnwindSafe for LockInfo
impl Send for LockInfo
impl Sync for LockInfo
impl Unpin for LockInfo
impl UnsafeUnpin 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