pub trait BufExt: Buf {
// Provided method
fn copy_or_reuse_bytes(&mut self, len: usize) -> Bytes { ... }
}Provided Methods§
Sourcefn copy_or_reuse_bytes(&mut self, len: usize) -> Bytes
fn copy_or_reuse_bytes(&mut self, len: usize) -> Bytes
Copy len Bytes from this (and advance the position), or reuse them from the underlying
buffer if possible.