Expand description
Error types for byte buffer operations.
Structs§
- BufTry
GetError allocorstd - The error returned by
bytes::Buffallible readers when allocation is available. - From
Utf8 Error - An owned byte container that failed UTF-8 validation.
- Invalid
Integer Length - Error type indicating an invalid integer length was specified. This is used when attempting to read or write an integer with an invalid number of bytes.
- OutOf
Bounds - Error type indicating an index or range is out of bounds.
- Range
OutOf Bounds - Error type indicating an index or range is out of bounds.
- TryGet
Error - Error type for the
try_get_methods ofcrate::Buffer. Indicates that there were not enough remaining bytes in the buffer while attempting to get a value from acrate::Bufferwith one of thetry_get_methods. - TryPut
Error - Error type for the
try_put_methods ofcrate::Buffer. Indicates that there were not enough remaining capacity in the buffer while attempting to put a value to acrate::Bufferwith one of thetry_put_methods.
Enums§
- Byte
Edit Error - Error returned by raw byte editing operations.
- From
Bytes Error - Error type for converting a raw byte slice into a fixed-capacity UTF-8 buffer. Combines UTF-8 validation and capacity errors.
- TryGet
Integer Error - Error returned by variable-width integer readers.
- TryPut
Integer Checked Error - Error returned by checked variable-width integer writers.
- TryPut
Integer Error - Error type for the
try_put_methods ofcrate::Buffer. Indicates that there were not enough remaining capacity in the buffer while attempting to put a value to acrate::Bufferwith one of thetry_put_methods. - Utf8
Edit Error - Error type for fixed-capacity UTF-8 editing operations.
- Utf8
Format Error - Error returned by fallible formatting into a fixed UTF-8 buffer.
- Utf8
Index Error - Error type for UTF-8 index and range operations.