pub struct LockAcquisitionV2 {
pub lock_var: VarId,
pub guard_var: VarId,
pub lock_type: LockType,
pub line: u32,
pub is_try: bool,
pub lock_name: String,
pub guard_name: String,
pub owner_fn: Option<SymbolId>,
}Expand description
Represents a lock acquisition point (V2 - uses VarId).
Fields§
§lock_var: VarIdThe variable representing the lock (e.g., self.mutex).
guard_var: VarIdThe variable representing the guard.
lock_type: LockTypeThe type of lock.
line: u32Line where the lock is acquired.
is_try: boolWhether this is a try_lock (non-blocking).
lock_name: StringThe name of the lock variable.
guard_name: StringThe name of the guard variable.
owner_fn: Option<SymbolId>The function that owns this lock acquisition.
Implementations§
Trait Implementations§
Source§impl Clone for LockAcquisitionV2
impl Clone for LockAcquisitionV2
Source§fn clone(&self) -> LockAcquisitionV2
fn clone(&self) -> LockAcquisitionV2
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LockAcquisitionV2
impl Debug for LockAcquisitionV2
Source§impl PartialEq for LockAcquisitionV2
impl PartialEq for LockAcquisitionV2
Source§fn eq(&self, other: &LockAcquisitionV2) -> bool
fn eq(&self, other: &LockAcquisitionV2) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LockAcquisitionV2
impl StructuralPartialEq for LockAcquisitionV2
Auto Trait Implementations§
impl Freeze for LockAcquisitionV2
impl RefUnwindSafe for LockAcquisitionV2
impl Send for LockAcquisitionV2
impl Sync for LockAcquisitionV2
impl Unpin for LockAcquisitionV2
impl UnsafeUnpin for LockAcquisitionV2
impl UnwindSafe for LockAcquisitionV2
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more