pub trait TryBufRead: Read {
// Provided methods
async fn try_fill_buf(&mut self) -> Option<Result<&[u8], Self::Error>> { ... }
fn try_consume(&mut self, _amt: usize) { ... }
}Expand description
Trait for types that may optionally implement embedded_io_async::BufRead
Provided Methods§
async fn try_fill_buf(&mut self) -> Option<Result<&[u8], Self::Error>>
fn try_consume(&mut self, _amt: usize)
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.