Available on crate feature
resp3
only.Expand description
RESP3 frame types.
Structs§
- Streamed
Frame - A helper struct for reading and managing streaming data types.
- Streamed
Range Frame - A frame type representing ranges into an associated buffer that contains the starting portion of a streaming frame.
Enums§
- Borrowed
Attrs - A borrowed attributes type, typically used with
BorrowedFrame
for encoding use cases. - Borrowed
Frame - A borrowed frame variant, typically used for encoding use cases.
- Bytes
Frame bytes
- A RESP3 frame that uses Bytes and Str as the underlying buffer type.
- Decoded
Frame - An enum describing the possible return types from the stream decoding interface.
- Decoded
Range Frame - A reference-free frame type representing ranges into an associated buffer, typically used to implement zero-copy parsing.
- Frame
Kind - The type of frame without any associated data.
- Owned
Frame - An enum describing a RESP3 frame that uses owned byte containers.
- Range
Frame - A reference-free frame type representing ranges into an associated buffer, typically used to implement zero-copy parsing.
- Resp
Version - The RESP version used in the
HELLO
request. - Verbatim
String Format - The format of a verbatim string frame.
Constants§
- ARRAY_
BYTE - Byte prefix before an array type.
- ATTRIBUTE_
BYTE - Byte prefix before an attribute type.
- AUTH
- Byte representation of
AUTH
. - BIG_
NUMBER_ BYTE - Byte prefix before a big number type.
- BLOB_
ERROR_ BYTE - Byte prefix before a blob error type.
- BLOB_
STRING_ BYTE - Byte prefix before a blob string type.
- BOOLEAN_
BYTE - Byte prefix before a boolean type.
- BOOL_
FALSE_ BYTES - Byte representation of
false
. - BOOL_
TRUE_ BYTES - Byte representation of
true
. - CHUNKED_
STRING_ BYTE - Byte representation of a chunked string.
- DOUBLE_
BYTE - Byte prefix before a Double type.
- EMPTY_
SPACE - Byte representation of an empty space.
- END_
STREAM_ AGGREGATE_ BYTES - The terminating bytes when a streaming operation is done from an aggregate type.
- END_
STREAM_ BYTE - Byte used to signify the end of a stream.
- END_
STREAM_ STRING_ BYTES - The terminating bytes when a streaming operation is done from a blob string.
- HELLO
- Byte representation of HELLO.
- INFINITY
- Byte representation of positive infinity.
- MAP_
BYTE - Byte prefix before a map type.
- NAN
- Byte representation of NaN.
- NEG_
INFINITY - Byte representation of negative infinity.
- NULL
- The binary representation of NULL in RESP3.
- NULL_
BYTE - Byte prefix before a NULL value.
- NUMBER_
BYTE - Byte prefix before a Number type.
- PUSH_
BYTE - Byte prefix before a push type.
- SETNAME
- Byte representation of
SETNAME
. - SET_
BYTE - Byte prefix before a set type.
- SIMPLE_
ERROR_ BYTE - Byte prefix before a simple error type.
- SIMPLE_
STRING_ BYTE - Byte prefix before a simple string type.
- STREAMED_
LENGTH_ BYTE - Byte prefix on a streamed type, following the byte that identifies the type.
- VERBATIM_
FORMAT_ BYTE - Byte used to separate the verbatim string from the format prefix.
- VERBATIM_
STRING_ BYTE - Byte prefix before a verbatim string type.
Traits§
- Resp3
Frame - Generic operations on a RESP3 frame.
Type Aliases§
- Bytes
Attributes bytes
- Additional information returned alongside a BytesFrame.
- Frame
Map - A map struct for frames that uses either
indexmap::IndexMap
,hashbrown::HashMap
, orstd::collections::HashMap
depending on the enabled feature flags. - Frame
Set - A map struct for frames that uses either
indexmap::IndexSet
,hashbrown::HashSet
, orstd::collections::HashSet
depending on the enabled feature flags. - Owned
Attributes - Additional information returned alongside an OwnedFrame.
- Range
Attributes - Additional information returned alongside an RangeFrame.