Trait BufInterest

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