Skip to main content

BufsMut

Trait BufsMut 

Source
pub trait BufsMut: BufMut {
    // Required method
    fn push(&mut self, bytes: impl Into<Bytes>);
}
Expand description

A BufMut that can also append pre-existing Bytes chunks.

Required Methods§

Source

fn push(&mut self, bytes: impl Into<Bytes>)

Appends a Bytes chunk instead of writing its contents inline into the destination buffer.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§