Module types

Source
Available on crate feature resp2 only.
Expand description

RESP2 frame types.

Enums§

BorrowedFrame
A borrowed frame variant, typically used for encoding use cases.
BytesFramebytes
A RESP2 frame that uses Bytes and Str as the underlying buffer type.
FrameKind
An enum representing the type of RESP frame.
OwnedFrame
A RESP2 frame.
RangeFrame
A reference-free frame type representing ranges into an associated buffer, typically used to implement zero-copy parsing.

Constants§

ARRAY_BYTE
Byte prefix before an array type.
BULKSTRING_BYTE
Byte prefix before a bulk string type.
ERROR_BYTE
Byte prefix before an error type.
INTEGER_BYTE
Byte prefix before an integer type.
NULL
The binary representation of NULL in RESP2.
SIMPLESTRING_BYTE
Byte prefix before a simple string type.

Traits§

Resp2Frame
Generic operations on a RESP2 frame.