Skip to main content

Module error

Module error 

Source
Expand description

Error types for byte buffer operations.

Structs§

BufTryGetErroralloc or std
The error returned by bytes::Buf fallible readers when allocation is available.
FromUtf8Error
An owned byte container that failed UTF-8 validation.
InvalidIntegerLength
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.
OutOfBounds
Error type indicating an index or range is out of bounds.
RangeOutOfBounds
Error type indicating an index or range is out of bounds.
TryGetError
Error type for the try_get_ methods of crate::Buffer. Indicates that there were not enough remaining bytes in the buffer while attempting to get a value from a crate::Buffer with one of the try_get_ methods.
TryPutError
Error type for the try_put_ methods of crate::Buffer. Indicates that there were not enough remaining capacity in the buffer while attempting to put a value to a crate::Buffer with one of the try_put_ methods.

Enums§

ByteEditError
Error returned by raw byte editing operations.
FromBytesError
Error type for converting a raw byte slice into a fixed-capacity UTF-8 buffer. Combines UTF-8 validation and capacity errors.
TryGetIntegerError
Error returned by variable-width integer readers.
TryPutIntegerCheckedError
Error returned by checked variable-width integer writers.
TryPutIntegerError
Error type for the try_put_ methods of crate::Buffer. Indicates that there were not enough remaining capacity in the buffer while attempting to put a value to a crate::Buffer with one of the try_put_ methods.
Utf8EditError
Error type for fixed-capacity UTF-8 editing operations.
Utf8FormatError
Error returned by fallible formatting into a fixed UTF-8 buffer.
Utf8IndexError
Error type for UTF-8 index and range operations.