Enum ntex_redis::codec::Response [−][src]
pub enum Response {
Nil,
Array(Vec<Response>),
Bytes(Bytes),
String(ByteString),
Error(ByteString),
Integer(i64),
}
Expand description
A single RESP value, this owns the data that is read from Redis.
Variants
Nil
Array(Vec<Response>)
Zero, one or more other Response
s.
Bytes(Bytes)
Tuple Fields
0: Bytes
A bulk string. In Redis terminology a string is a byte-array, so this is stored as a
vector of u8
s to allow clients to interpret the bytes as appropriate.
String(ByteString)
Tuple Fields
0: ByteString
A valid utf-8 string
Error(ByteString)
Tuple Fields
0: ByteString
An error from the Redis server
Integer(i64)
Tuple Fields
0: i64
Redis documentation defines an integer as being a signed 64-bit integer: https://redis.io/topics/protocol#resp-integers
Implementations
Extract redis server error to Result
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Response
impl !UnwindSafe for Response
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more