Trait redis_async::resp::FromResp
source · pub trait FromResp: Sized {
fn from_resp_int(resp: RespValue) -> Result<Self, Error>;
fn from_resp(resp: RespValue) -> Result<Self, Error> { ... }
}
Expand description
A trait to be implemented for every time which can be read from a RESP value.
Implementing this trait on a type means that type becomes a valid return type for calls such as send
on
client::PairedConnection