pub struct Deadlock {
pub victim: TxnId,
pub cycle: Vec<TxnId>,
}Available on crate feature
std only.Expand description
A detected deadlock: the cycle of transactions and the one chosen to abort.
Fields§
§victim: TxnIdThe transaction selected for abort to break the cycle.
cycle: Vec<TxnId>The transactions forming the cycle, in wait-for order. Each waits for the next, and the last waits for the first.
Trait Implementations§
impl Eq for Deadlock
impl StructuralPartialEq for Deadlock
Auto Trait Implementations§
impl Freeze for Deadlock
impl RefUnwindSafe for Deadlock
impl Send for Deadlock
impl Sync for Deadlock
impl Unpin for Deadlock
impl UnsafeUnpin for Deadlock
impl UnwindSafe for Deadlock
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