#[non_exhaustive]pub enum LockSource {
BaseAddress,
AllocationTracker,
Reference,
}
Expand description
Represents possible poisoning sources for mutexes and locks.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BaseAddress
Mutex containing the base memory offset was poisoned.
AllocationTracker
AllocationTracker
mutex was poisoned.
Reference
Concurrent mutable access exclusion flag in ReferenceState
was
poisoned.
Trait Implementations§
Source§impl Clone for LockSource
impl Clone for LockSource
Source§fn clone(&self) -> LockSource
fn clone(&self) -> LockSource
Returns a duplicate of the value. Read more
1.0.0 · 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 LockSource
impl Debug for LockSource
impl Copy for LockSource
Auto Trait Implementations§
impl Freeze for LockSource
impl RefUnwindSafe for LockSource
impl Send for LockSource
impl Sync for LockSource
impl Unpin for LockSource
impl UnwindSafe for LockSource
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