pub enum TaskLock {
None,
Force,
Lock(String),
Unlock(String),
}Variants§
None
No lock. Fail the operation if the subject is locked.
Force
Force operation if the subject is locked.
Lock(String)
Use or apply a lock. Fail the operation if the subject is locked with a different lock.
Unlock(String)
Use and unlock after the operation. Fail the operation if the subject is locked with a different lock.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskLock
impl<'de> Deserialize<'de> for TaskLock
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 Ord for TaskLock
impl Ord for TaskLock
Source§impl PartialOrd for TaskLock
impl PartialOrd for TaskLock
impl Eq for TaskLock
impl StructuralPartialEq for TaskLock
Auto Trait Implementations§
impl Freeze for TaskLock
impl RefUnwindSafe for TaskLock
impl Send for TaskLock
impl Sync for TaskLock
impl Unpin for TaskLock
impl UnsafeUnpin for TaskLock
impl UnwindSafe for TaskLock
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more