Enum tor_persist::LockStatus [−][src]
pub enum LockStatus {
NoLock,
AlreadyHeld,
NewlyAcquired,
}Expand description
A possible outcome from calling StateMgr::try_lock()
Variants
NoLock
We didn’t have the lock and were unable to acquire it.
AlreadyHeld
We already held the lock, and didn’t have anything to do.
NewlyAcquired
We successfully acquired the lock for the first time.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LockStatus
impl Send for LockStatus
impl Sync for LockStatus
impl Unpin for LockStatus
impl UnwindSafe for LockStatus
Blanket Implementations
Mutably borrows from an owned value. Read more