pub enum LockResult {
Acquired,
AlreadyHeld,
WouldBlock,
Conflict,
}Expand description
Result of a lock attempt
Variants§
Acquired
Lock was acquired
AlreadyHeld
Lock is already held by this transaction
WouldBlock
Lock would block (conflict with existing lock)
Conflict
Deadlock or irrecoverable conflict detected NOTE: Currently unused — the abort-retry model (WouldBlock) prevents deadlocks by construction. Retained for API compatibility.
Trait Implementations§
Source§impl Clone for LockResult
impl Clone for LockResult
Source§fn clone(&self) -> LockResult
fn clone(&self) -> LockResult
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 moreimpl Copy for LockResult
Source§impl Debug for LockResult
impl Debug for LockResult
impl Eq for LockResult
Source§impl PartialEq for LockResult
impl PartialEq for LockResult
Source§fn eq(&self, other: &LockResult) -> bool
fn eq(&self, other: &LockResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LockResult
Auto Trait Implementations§
impl Freeze for LockResult
impl RefUnwindSafe for LockResult
impl Send for LockResult
impl Sync for LockResult
impl Unpin for LockResult
impl UnsafeUnpin for LockResult
impl UnwindSafe for LockResult
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.