Module bytes

Source
Expand description

re-export of bytes crate types.

Modules§

buf
Utilities for working with buffers.

Structs§

BufMutWriter
A new type for help implementing io::Write and fmt::Write traits.
Bytes
A cheaply cloneable and sliceable chunk of contiguous memory.
BytesMut
A unique reference to a contiguous slice of memory.
BytesStr
reference counted String type. cheap to Clone and share between multiple threads.
PagedBytesMut
const generic guarded BytesMut with page size in byte unit at compile time. when internal memory reserve happen it always aim for the page size.
TryGetError
Error type for the try_get_ methods of Buf. Indicates that there were not enough remaining bytes in the buffer while attempting to get a value from a Buf with one of the try_get_ methods.
WriteBuf

Enums§

EitherBuf
An enum implement Buf trait when both arms are types implement the same trait.

Traits§

Buf
Read bytes from a buffer.
BufInterest
trait generic over different types of buffer strategy.
BufMut
A trait for values that provide sequential write access to bytes.
BufRead
trait generic over different types of read buffer strategy.
BufWrite
trait generic over different types of write buffer strategy.