Enum ntex_redis::codec::Response [−][src]
pub enum Response {
Nil,
Array(Vec<Response>),
Bytes(Bytes),
String(ByteString),
Error(ByteString),
Integer(i64),
}A single RESP value, this owns the data that is read from Redis.
Variants
Zero, one or more other Responses.
Bytes(Bytes)A bulk string. In Redis terminology a string is a byte-array, so this is stored as a
vector of u8s to allow clients to interpret the bytes as appropriate.
A valid utf-8 string
An error from the Redis server
Integer(i64)Redis documentation defines an integer as being a signed 64-bit integer: https://redis.io/topics/protocol#resp-integers
Implementations
impl Response[src]
impl Response[src]pub fn into_result(self) -> Result<Response, ByteString>[src]
Extract redis server error to Result
Trait Implementations
impl StructuralEq for Response[src]
impl StructuralEq for Response[src]impl StructuralPartialEq for Response[src]
impl StructuralPartialEq for Response[src]Auto Trait Implementations
impl RefUnwindSafe for Response
impl RefUnwindSafe for Responseimpl UnwindSafe for Response
impl UnwindSafe for ResponseBlanket Implementations
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
Should always be Self