pub struct Buffer {
inner: BytesMut,
}Expand description
Mutable, growable byte container. Used by codecs to build and consume framed payloads, and as an owned container for transport-level payloads.
Fields§
§inner: BytesMutImplementations§
Trait Implementations§
Source§impl Codec<Buffer> for BytesCodec
impl Codec<Buffer> for BytesCodec
Source§impl Codec<Buffer> for LengthCodec
impl Codec<Buffer> for LengthCodec
Auto Trait Implementations§
impl Freeze for Buffer
impl RefUnwindSafe for Buffer
impl Send for Buffer
impl Sync for Buffer
impl Unpin for Buffer
impl UnsafeUnpin for Buffer
impl UnwindSafe for Buffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more