pub enum Value {
Ok,
Pong,
Nil,
Simple(Arc<str>),
Error(Arc<str>),
Integer(i64),
String(Arc<str>),
Multi(Arc<[Value]>),
Expire((Arc<Value>, Instant)),
Map(HashMap<Value, Value>),
Push(Arc<[Value]>),
Set(HashSet<Value>),
}Variants§
Ok
Pong
Nil
Simple(Arc<str>)
Error(Arc<str>)
Integer(i64)
String(Arc<str>)
Multi(Arc<[Value]>)
Expire((Arc<Value>, Instant))
Map(HashMap<Value, Value>)
Push(Arc<[Value]>)
Set(HashSet<Value>)
Implementations§
Source§impl Value
impl Value
pub fn expired(&self) -> bool
pub fn is_some(&self) -> bool
pub fn inner(&self) -> &Self
pub fn is_none(&self) -> bool
pub fn to_resp2<'b, T>( &'b self, writer: &'b mut T, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'b>>
pub fn to_resp3<'b, T>( &'b self, writer: &'b mut T, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'b>>
pub fn from_resp<'a, T>( reader: &'a mut T, ) -> Pin<Box<dyn Future<Output = Result<Option<Self>>> + Send + 'a>>
pub fn from_resp3<'a, T>( reader: &'a mut T, ) -> Pin<Box<dyn Future<Output = Result<Option<Self>>> + Send + 'a>>
Trait Implementations§
impl Eq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more