[−]Enum actix_redis::RespValue
A single RESP value, this owns the data that is read/to-be written to Redis.
It is cloneable to allow multiple copies to be delivered in certain circumstances, e.g. multiple subscribers to the same topic.
Variants
Zero, one or more other RespValue
s.
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.
Error(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
SimpleString(String)
Implementations
impl RespValue
pub fn append<T>(self, other: impl IntoIterator<Item = T>) -> RespValue where
T: Into<RespValue>,
T: Into<RespValue>,
Convenience function for building dynamic Redis commands with variable numbers of arguments, e.g. RPUSH
This will panic if called for anything other than arrays
pub fn push<T>(&mut self, item: T) where
T: Into<RespValue>,
T: Into<RespValue>,
Push item to Resp array
This will panic if called for anything other than arrays
Trait Implementations
impl Clone for RespValue
pub fn clone(&self) -> RespValue
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RespValue
impl Eq for RespValue
impl<'a> From<&'a [u8]> for RespValue
impl<'a> From<&'a String> for RespValue
impl<'a> From<&'a str> for RespValue
impl<'a> From<Arc<str>> for RespValue
impl<'a> From<String> for RespValue
impl<'a> From<Vec<u8, Global>> for RespValue
impl<'a> From<usize> for RespValue
impl FromResp for RespValue
pub fn from_resp_int(resp: RespValue) -> Result<RespValue, Error>
pub fn from_resp(resp: RespValue) -> Result<Self, Error>
impl PartialEq<RespValue> for RespValue
impl StructuralEq for RespValue
impl StructuralPartialEq for RespValue
Auto Trait Implementations
impl RefUnwindSafe for RespValue
[src]
impl Send for RespValue
[src]
impl Sync for RespValue
[src]
impl Unpin for RespValue
[src]
impl UnwindSafe for RespValue
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> 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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,