pub enum AcquireAndUpdateKeyOption {
Update(Vec<u8>, SetOptions),
DoNotUpdate,
Delete,
}
Expand description
Enumeration used as a response for leased_lock::Client::acquire_lock_and_update_value
.
Variants§
Update(Vec<u8>, SetOptions)
Indicates a State Store key shall be updated. The first argument is new value for the State Store key.
DoNotUpdate
Indicates the State Store key shall not be updated nor deleted.
Delete
Indicates the State Store key shall be deleted.
Auto Trait Implementations§
impl Freeze for AcquireAndUpdateKeyOption
impl RefUnwindSafe for AcquireAndUpdateKeyOption
impl Send for AcquireAndUpdateKeyOption
impl Sync for AcquireAndUpdateKeyOption
impl Unpin for AcquireAndUpdateKeyOption
impl UnwindSafe for AcquireAndUpdateKeyOption
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