pub enum FrameKind {
Show 18 variants
Array,
BlobString,
SimpleString,
SimpleError,
Number,
Null,
Double,
Boolean,
BlobError,
VerbatimString,
Map,
Set,
Attribute,
Push,
Hello,
BigNumber,
ChunkedString,
EndStream,
}
Expand description
The type of frame without any associated data.
Variants§
Array
BlobString
SimpleString
SimpleError
Number
Null
Double
Boolean
BlobError
VerbatimString
Map
Set
Attribute
Push
Hello
BigNumber
ChunkedString
EndStream
Implementations§
Source§impl FrameKind
impl FrameKind
Sourcepub fn is_aggregate_type(&self) -> bool
pub fn is_aggregate_type(&self) -> bool
Whether or not the frame is an aggregate type (array, set, map).
Sourcepub fn is_streaming_type(&self) -> bool
pub fn is_streaming_type(&self) -> bool
Whether or not the frame is an aggregate type or blob string.
Sourcepub fn hash_prefix(&self) -> &'static str
pub fn hash_prefix(&self) -> &'static str
A function used to differentiate data types that may have the same inner binary representation when hashing a Frame
.
Trait Implementations§
Source§impl Ord for FrameKind
impl Ord for FrameKind
Source§impl PartialOrd for FrameKind
impl PartialOrd for FrameKind
impl Copy for FrameKind
impl Eq for FrameKind
impl StructuralPartialEq for FrameKind
Auto Trait Implementations§
impl Freeze for FrameKind
impl RefUnwindSafe for FrameKind
impl Send for FrameKind
impl Sync for FrameKind
impl Unpin for FrameKind
impl UnwindSafe for FrameKind
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