pub trait BufInterest {
    // Required methods
    fn want_write_buf(&self) -> bool;
    fn want_write_io(&self) -> bool;
}
Expand description

trait generic over different types of buffer strategy.

Required Methods§

source

fn want_write_buf(&self) -> bool

flag if buffer want more data to be filled in.

source

fn want_write_io(&self) -> bool

flag if buffer want to write data to io.

Implementors§

source§

impl BufInterest for BytesMut

source§

impl BufInterest for xitca_http::bytes::WriteBuf

source§

impl<B, const LIMIT: usize> BufInterest for ListWriteBuf<B, LIMIT>

source§

impl<L, R> BufInterest for EitherBuf<L, R>
where L: BufInterest, R: BufInterest,

source§

impl<const LIMIT: usize> BufInterest for ReadBuf<LIMIT>

source§

impl<const LIMIT: usize> BufInterest for xitca_http::util::buffered::WriteBuf<LIMIT>

source§

impl<const P: usize> BufInterest for PagedBytesMut<P>