pub enum DeadlockSource {
WaitForGraph,
LockOrderViolation,
}Expand description
Source of deadlock detection
Indicates which detection mechanism identified the deadlock and the level of certainty about the deadlock.
Variants§
WaitForGraph
Deadlock detected via wait-for graph (actual runtime deadlock)
This indicates threads are actually blocked waiting for each other. This is a CERTAIN deadlock - the program is deadlocked right now.
LockOrderViolation
Deadlock detected via lock order violation (potential deadlock)
This indicates an inconsistent lock ordering pattern that COULD lead to a deadlock under different timing. This is a SUSPECTED deadlock - the pattern is dangerous but may not deadlock in practice.
Trait Implementations§
Source§impl Clone for DeadlockSource
impl Clone for DeadlockSource
Source§fn clone(&self) -> DeadlockSource
fn clone(&self) -> DeadlockSource
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 DeadlockSource
impl Debug for DeadlockSource
Source§impl<'de> Deserialize<'de> for DeadlockSource
impl<'de> Deserialize<'de> for DeadlockSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DeadlockSource
impl PartialEq for DeadlockSource
Source§impl Serialize for DeadlockSource
impl Serialize for DeadlockSource
impl Copy for DeadlockSource
impl Eq for DeadlockSource
impl StructuralPartialEq for DeadlockSource
Auto Trait Implementations§
impl Freeze for DeadlockSource
impl RefUnwindSafe for DeadlockSource
impl Send for DeadlockSource
impl Sync for DeadlockSource
impl Unpin for DeadlockSource
impl UnwindSafe for DeadlockSource
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