#[non_exhaustive]pub enum HsetOutcome {
Absorbed,
NotIndexed,
Error(String),
}Expand description
Outcome of CommandExtension::try_intercept_hset.
The HSET interception path runs before the dispatcher’s routing planner. The extension can either absorb the write (the standard storage write still fires; the engine just got a free side-effect), reject it with a structured error reply, or pass through.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Absorbed
The HSET key matched a registered prefix and the extension absorbed the write side-effect. The dispatcher proceeds with the standard storage write so the underlying hash document still lands on the backend.
NotIndexed
The HSET key did not match any registered prefix. Equivalent to no extension being installed for this command.
Error(String)
The HSET key matched a registered prefix but the
payload was malformed. The dispatcher synthesises a
-ERR <message>\r\n reply and returns it directly to
the client without writing to the backend.
Trait Implementations§
Source§impl Clone for HsetOutcome
impl Clone for HsetOutcome
Source§fn clone(&self) -> HsetOutcome
fn clone(&self) -> HsetOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HsetOutcome
impl Debug for HsetOutcome
Source§impl PartialEq for HsetOutcome
impl PartialEq for HsetOutcome
Source§fn eq(&self, other: &HsetOutcome) -> bool
fn eq(&self, other: &HsetOutcome) -> bool
self and other values to be equal, and is used by ==.impl Eq for HsetOutcome
impl StructuralPartialEq for HsetOutcome
Auto Trait Implementations§
impl Freeze for HsetOutcome
impl RefUnwindSafe for HsetOutcome
impl Send for HsetOutcome
impl Sync for HsetOutcome
impl Unpin for HsetOutcome
impl UnsafeUnpin for HsetOutcome
impl UnwindSafe for HsetOutcome
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
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
key and return true if they are equal.