Struct embedded_redis::commands::hset::HashSetCommand
source · pub struct HashSetCommand<const N: usize> { /* private fields */ }
Expand description
Abstraction of HSET command
Implementations§
source§impl HashSetCommand<1>
impl HashSetCommand<1>
Trait Implementations§
source§impl<F: From<CommandBuilder> + ToInteger, const N: usize> Command<F> for HashSetCommand<N>
impl<F: From<CommandBuilder> + ToInteger, const N: usize> Command<F> for HashSetCommand<N>
§type Response = i64
type Response = i64
Response type, either a custom evaluated “high-level” response or the original RESP frame
source§fn eval_response(&self, frame: F) -> Result<Self::Response, ResponseTypeError>
fn eval_response(&self, frame: F) -> Result<Self::Response, ResponseTypeError>
The command has the ability to evaluate the response frame and craft its own high level
response from that.
Its also possible to just return 1:1 the RESP2 frame. Read more
Auto Trait Implementations§
impl<const N: usize> RefUnwindSafe for HashSetCommand<N>
impl<const N: usize> Send for HashSetCommand<N>
impl<const N: usize> Sync for HashSetCommand<N>
impl<const N: usize> Unpin for HashSetCommand<N>
impl<const N: usize> UnwindSafe for HashSetCommand<N>
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