pub trait BufExt: Buf {
// Required methods
fn get_bytes_nul(&mut self) -> Result<Bytes, Error>;
fn get_bytes(&mut self, len: usize) -> Bytes;
fn get_str_nul(&mut self) -> Result<String, Error>;
fn get_str(&mut self, len: usize) -> Result<String, Error>;
}Required Methods§
fn get_bytes_nul(&mut self) -> Result<Bytes, Error>
fn get_bytes(&mut self, len: usize) -> Bytes
fn get_str_nul(&mut self) -> Result<String, Error>
fn get_str(&mut self, len: usize) -> Result<String, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".