pub enum RangeFrame {
SimpleString((usize, usize)),
Error((usize, usize)),
Integer(i64),
BulkString((usize, usize)),
Array(Vec<RangeFrame>),
Null,
}
Available on crate feature
resp2
only.Expand description
A reference-free frame type representing ranges into an associated buffer, typically used to implement zero-copy parsing.
Variants§
SimpleString((usize, usize))
A RESP2 simple string.
Error((usize, usize))
A short string representing an error.
Integer(i64)
A signed 64-bit integer.
BulkString((usize, usize))
A byte array.
Array(Vec<RangeFrame>)
An array of frames.
Null
A null value.
Trait Implementations§
Source§impl Clone for RangeFrame
impl Clone for RangeFrame
Source§fn clone(&self) -> RangeFrame
fn clone(&self) -> RangeFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RangeFrame
impl Debug for RangeFrame
Source§impl PartialEq for RangeFrame
impl PartialEq for RangeFrame
impl Eq for RangeFrame
impl StructuralPartialEq for RangeFrame
Auto Trait Implementations§
impl Freeze for RangeFrame
impl RefUnwindSafe for RangeFrame
impl Send for RangeFrame
impl Sync for RangeFrame
impl Unpin for RangeFrame
impl UnwindSafe for RangeFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more