pub struct EncodedResponse<'req, B, const N: usize = DEFAULT_HEADER_CAPACITY> { /* private fields */ }Implementations§
Source§impl<'req, B, const N: usize> EncodedResponse<'req, B, N>where
B: EncodedBody,
impl<'req, B, const N: usize> EncodedResponse<'req, B, N>where
B: EncodedBody,
pub fn direct( status: StatusCode, static_headers: &'static [u8], headers: Headers<'req, N>, body: B, ) -> Self
pub fn status(&self) -> StatusCode
pub fn wire_headers(&self) -> Shared
pub fn preserialize(&self) -> (Vec<u8>, usize)
pub fn write_into_slice(&self, out: &mut [u8], date: &[u8; 29]) -> Option<usize>
pub fn write_head_split( self, out: &mut [u8], date: &[u8; 29], ) -> Option<(usize, Shared)>
Trait Implementations§
Source§impl<'req, B, const N: usize> Shape<'req> for EncodedResponse<'req, B, N>where
B: EncodedBody,
impl<'req, B, const N: usize> Shape<'req> for EncodedResponse<'req, B, N>where
B: EncodedBody,
type StreamInner = NeverStream
fn prepare( self, mode: Preparation, _gzip: Option<&mut Gzip>, out: &mut [u8], date: &[u8; 29], ) -> Prepared<Self::StreamInner>
fn response_view(&self) -> Option<ResponseView>
Auto Trait Implementations§
impl<'req, B, const N: usize = DEFAULT_HEADER_CAPACITY> !RefUnwindSafe for EncodedResponse<'req, B, N>
impl<'req, B, const N: usize = DEFAULT_HEADER_CAPACITY> !Send for EncodedResponse<'req, B, N>
impl<'req, B, const N: usize = DEFAULT_HEADER_CAPACITY> !Sync for EncodedResponse<'req, B, N>
impl<'req, B, const N: usize = DEFAULT_HEADER_CAPACITY> !UnwindSafe for EncodedResponse<'req, B, N>
impl<'req, B, const N: usize> Freeze for EncodedResponse<'req, B, N>where
B: Freeze,
impl<'req, B, const N: usize> Unpin for EncodedResponse<'req, B, N>where
B: Unpin,
impl<'req, B, const N: usize> UnsafeUnpin for EncodedResponse<'req, B, N>where
B: UnsafeUnpin,
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