pub struct ListWriteBuf<B, const LIMIT: usize> { /* private fields */ }
Implementations§
Source§impl<B: Buf, const LIMIT: usize> ListWriteBuf<B, LIMIT>
impl<B: Buf, const LIMIT: usize> ListWriteBuf<B, LIMIT>
Sourcepub fn split_buf(&mut self) -> BytesMut
pub fn split_buf(&mut self) -> BytesMut
split buf field from Self. this is often coupled with BufWrite::write_buf method to obtain what has been written to the buf.
Trait Implementations§
Source§impl<B, const LIMIT: usize> BufInterest for ListWriteBuf<B, LIMIT>where
B: Buf + ChunkVectoredUninit,
impl<B, const LIMIT: usize> BufInterest for ListWriteBuf<B, LIMIT>where
B: Buf + ChunkVectoredUninit,
Source§fn want_write_buf(&self) -> bool
fn want_write_buf(&self) -> bool
flag if buffer want more data to be filled in.
Source§fn want_write_io(&self) -> bool
fn want_write_io(&self) -> bool
flag if buffer want to write data to io.
Source§impl<B, const LIMIT: usize> BufWrite for ListWriteBuf<B, LIMIT>where
B: Buf + ChunkVectoredUninit,
impl<B, const LIMIT: usize> BufWrite for ListWriteBuf<B, LIMIT>where
B: Buf + ChunkVectoredUninit,
Source§impl<const BUF_LIMIT: usize> H1BufWrite for ListWriteBuf<EitherBuf<Bytes, EitherBuf<Chain<Chain<Bytes, Bytes>, &'static [u8]>, &'static [u8]>>, BUF_LIMIT>
impl<const BUF_LIMIT: usize> H1BufWrite for ListWriteBuf<EitherBuf<Bytes, EitherBuf<Chain<Chain<Bytes, Bytes>, &'static [u8]>, &'static [u8]>>, BUF_LIMIT>
Source§fn write_buf_head<F, T, E>(&mut self, func: F) -> Result<T, E>
fn write_buf_head<F, T, E>(&mut self, func: F) -> Result<T, E>
write http response head(status code and reason line, header lines) to buffer with fallible
closure. on error path the buffer is reverted back to state before method was called.
Source§fn write_buf_static(&mut self, bytes: &'static [u8])
fn write_buf_static(&mut self, bytes: &'static [u8])
write
&'static [u8]
to buffer.Source§fn write_buf_bytes(&mut self, bytes: Bytes)
fn write_buf_bytes(&mut self, bytes: Bytes)
write bytes to buffer as is.
Source§fn write_buf_bytes_chunked(&mut self, bytes: Bytes)
fn write_buf_bytes_chunked(&mut self, bytes: Bytes)
write bytes to buffer as
transfer-encoding: chunked
encoded.Auto Trait Implementations§
impl<B, const LIMIT: usize> Freeze for ListWriteBuf<B, LIMIT>
impl<B, const LIMIT: usize> RefUnwindSafe for ListWriteBuf<B, LIMIT>where
B: RefUnwindSafe,
impl<B, const LIMIT: usize> !Send for ListWriteBuf<B, LIMIT>
impl<B, const LIMIT: usize> !Sync for ListWriteBuf<B, LIMIT>
impl<B, const LIMIT: usize> Unpin for ListWriteBuf<B, LIMIT>
impl<B, const LIMIT: usize> UnwindSafe for ListWriteBuf<B, LIMIT>where
B: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more