TryBufRead

Trait TryBufRead 

Source
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§

Source

async fn try_fill_buf(&mut self) -> Option<Result<&[u8], Self::Error>>

Source

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.

Implementors§

Source§

impl<C> TryBufRead for HttpConnection<'_, C>
where C: Read + Write,