[−][src]Trait redis_async::resp::FromResp
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
Required methods
fn from_resp_int(resp: RespValue) -> Result<Self, Error>
Provided methods
fn from_resp(resp: RespValue) -> Result<Self, Error>
Return a Result
containing either Self
or Error
. Errors can occur due to either: a) the particular
RespValue
being incompatible with the required type, or b) a remote Redis error occuring.
Implementations on Foreign Types
impl FromResp for String
[src]
impl FromResp for Vec<u8>
[src]
impl FromResp for i64
[src]
impl FromResp for isize
[src]
fn from_resp_int(resp: RespValue) -> Result<Self, Error>
[src]
impl FromResp for usize
[src]
fn from_resp_int(resp: RespValue) -> Result<Self, Error>
[src]
impl FromResp for i32
[src]
fn from_resp_int(resp: RespValue) -> Result<Self, Error>
[src]
impl FromResp for u32
[src]
fn from_resp_int(resp: RespValue) -> Result<Self, Error>
[src]
impl FromResp for u64
[src]
fn from_resp_int(resp: RespValue) -> Result<Self, Error>
[src]
impl FromResp for bool
[src]
impl<T: FromResp> FromResp for Option<T>
[src]
impl<T: FromResp> FromResp for Vec<T>
[src]
impl<K: FromResp + Hash + Eq, T: FromResp, S: BuildHasher + Default> FromResp for HashMap<K, T, S>
[src]
impl FromResp for ()
[src]
impl<A, B> FromResp for (A, B) where
A: FromResp,
B: FromResp,
[src]
A: FromResp,
B: FromResp,
impl<A, B, C> FromResp for (A, B, C) where
A: FromResp,
B: FromResp,
C: FromResp,
[src]
Loading content...A: FromResp,
B: FromResp,
C: FromResp,