pub enum ProbeRelease {
Eval,
Function(String),
}Expand description
How a probe’s lock is released.
Variants§
Eval
With EVAL and the compare-and-delete script.
Function(String)
With FCALL of a function the operator installed, taking the key and
the lock’s token and deleting the key only if it holds the token: for
a Redis user that may call it and may not send scripts of its own. A
call that fails falls back to ProbeRelease::Eval.
Trait Implementations§
Source§impl Clone for ProbeRelease
impl Clone for ProbeRelease
Source§fn clone(&self) -> ProbeRelease
fn clone(&self) -> ProbeRelease
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 moreSource§impl Debug for ProbeRelease
impl Debug for ProbeRelease
Source§impl Default for ProbeRelease
impl Default for ProbeRelease
Source§fn default() -> ProbeRelease
fn default() -> ProbeRelease
Returns the “default value” for a type. Read more
impl Eq for ProbeRelease
Source§impl PartialEq for ProbeRelease
impl PartialEq for ProbeRelease
impl StructuralPartialEq for ProbeRelease
Auto Trait Implementations§
impl Freeze for ProbeRelease
impl RefUnwindSafe for ProbeRelease
impl Send for ProbeRelease
impl Sync for ProbeRelease
impl Unpin for ProbeRelease
impl UnsafeUnpin for ProbeRelease
impl UnwindSafe for ProbeRelease
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.