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§

fn want_write_buf(&self) -> bool

flag if buffer want more data to be filled in.

fn want_write_io(&self) -> bool

flag if buffer want to write data to io.

Implementations on Foreign Types§

source§

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

source§

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

source§

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

Implementors§

§

impl BufInterest for BytesMut

§

impl BufInterest for xitca_web::bytes::WriteBuf

§

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

§

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