pub enum ResponseWrite {
Full(Vec<u8>),
Stream(ChunkedEncoder),
}Expand description
Serialized response output.
Variants§
Full(Vec<u8>)
Fully-buffered response bytes.
Stream(ChunkedEncoder)
Chunked stream (head + body chunks).
Auto Trait Implementations§
impl !RefUnwindSafe for ResponseWrite
impl !Sync for ResponseWrite
impl !UnwindSafe for ResponseWrite
impl Freeze for ResponseWrite
impl Send for ResponseWrite
impl Unpin for ResponseWrite
impl UnsafeUnpin for ResponseWrite
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).