pub struct WriteBuf<const LIMIT: usize>(/* private fields */);
Implementations§
Trait Implementations§
Source§impl<const LIMIT: usize> BufInterest for WriteBuf<LIMIT>
impl<const LIMIT: usize> BufInterest for WriteBuf<LIMIT>
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<const LIMIT: usize> BufWrite for WriteBuf<LIMIT>
impl<const LIMIT: usize> BufWrite for WriteBuf<LIMIT>
Source§impl<const BUF_LIMIT: usize> H1BufWrite for WriteBuf<BUF_LIMIT>
impl<const BUF_LIMIT: usize> H1BufWrite for WriteBuf<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<const LIMIT: usize> Freeze for WriteBuf<LIMIT>
impl<const LIMIT: usize> RefUnwindSafe for WriteBuf<LIMIT>
impl<const LIMIT: usize> Send for WriteBuf<LIMIT>
impl<const LIMIT: usize> Sync for WriteBuf<LIMIT>
impl<const LIMIT: usize> Unpin for WriteBuf<LIMIT>
impl<const LIMIT: usize> UnwindSafe for WriteBuf<LIMIT>
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