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
sourceimpl 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
sourceimpl Ord for FrameKind
impl Ord for FrameKind
sourceimpl PartialOrd<FrameKind> for FrameKind
impl PartialOrd<FrameKind> for FrameKind
sourcefn partial_cmp(&self, other: &FrameKind) -> Option<Ordering>
fn partial_cmp(&self, other: &FrameKind) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for FrameKind
impl Eq for FrameKind
impl StructuralEq for FrameKind
impl StructuralPartialEq for FrameKind
Auto Trait Implementations
impl RefUnwindSafe for FrameKind
impl Send for FrameKind
impl Sync for FrameKind
impl Unpin for FrameKind
impl UnwindSafe for FrameKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more