Struct embedded_redis::commands::get::GetCommand
source · pub struct GetCommand { /* private fields */ }
Expand description
Abstraction of GET command.
Implementations§
source§impl GetCommand
impl GetCommand
Trait Implementations§
source§impl<F> Command<F> for GetCommand
impl<F> Command<F> for GetCommand
§type Response = Option<GetResponse>
type Response = Option<GetResponse>
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 RefUnwindSafe for GetCommand
impl Send for GetCommand
impl Sync for GetCommand
impl Unpin for GetCommand
impl UnwindSafe for GetCommand
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