pub struct HelloCommand {}
Expand description
Abstraction of HELLO command.
Trait Implementations§
Source§impl Command<BytesFrame> for HelloCommand
impl Command<BytesFrame> for HelloCommand
Source§type Response = HelloResponse
type Response = HelloResponse
Response type, either a custom evaluated “high-level” response or the original RESP frame
Source§fn encode(&self) -> Resp3Frame
fn encode(&self) -> Resp3Frame
Encodes the command to RESP2/RESP3 frame
Source§fn eval_response(
&self,
frame: Resp3Frame,
) -> Result<Self::Response, ResponseTypeError>
fn eval_response( &self, frame: Resp3Frame, ) -> 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
Source§impl Command<BytesFrame> for HelloCommand
impl Command<BytesFrame> for HelloCommand
Source§type Response = HelloResponse
type Response = HelloResponse
Response type, either a custom evaluated “high-level” response or the original RESP frame
Source§fn encode(&self) -> Resp2Frame
fn encode(&self) -> Resp2Frame
Encodes the command to RESP2/RESP3 frame
Source§fn eval_response(
&self,
_frame: Resp2Frame,
) -> Result<Self::Response, ResponseTypeError>
fn eval_response( &self, _frame: Resp2Frame, ) -> 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 Freeze for HelloCommand
impl RefUnwindSafe for HelloCommand
impl Send for HelloCommand
impl Sync for HelloCommand
impl Unpin for HelloCommand
impl UnwindSafe for HelloCommand
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more