pub struct EncodedResponseInner<'req, B, const N: usize = DEFAULT_HEADER_CAPACITY> { /* private fields */ }Implementations§
Source§impl<'req, B, const N: usize> EncodedResponseInner<'req, B, N>where
B: EncodedBody,
impl<'req, B, const N: usize> EncodedResponseInner<'req, B, N>where
B: EncodedBody,
pub fn direct( status: StatusCode, static_headers: &'static [u8], headers: HeadersInner<'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 EncodedResponseInner<'req, B, N>where
B: EncodedBody,
impl<'req, B, const N: usize> Shape<'req> for EncodedResponseInner<'req, B, N>where
B: EncodedBody,
type StreamInner = NeverStream
fn write_into_slice(&self, out: &mut [u8], date: &[u8; 29]) -> Option<usize>
fn write_head_split( self, out: &mut [u8], date: &[u8; 29], ) -> Option<(usize, Shared)>
fn preserialize(&self) -> (Vec<u8>, usize)
fn status(&self) -> StatusCode
fn headers_wire(&self) -> Shared
fn write_head_only( &self, out: &mut [u8], date: &[u8; 29], ) -> Option<(usize, &'static [u8])>
fn preserialize_static(&self) -> Option<(Vec<u8>, usize, &'static [u8])>
fn write_head_stream( self, out: &mut [u8], date: &[u8; 29], ) -> Option<(usize, Self::StreamInner)>
fn body_for_gzip(&self) -> Option<&[u8]>
fn write_gzip_head( self, out: &mut [u8], date: &[u8; 29], body_len: usize, ) -> Option<usize>
fn body_bytes(&self) -> &[u8] ⓘ
Auto Trait Implementations§
impl<'req, B, const N: usize = DEFAULT_HEADER_CAPACITY> !RefUnwindSafe for EncodedResponseInner<'req, B, N>
impl<'req, B, const N: usize = DEFAULT_HEADER_CAPACITY> !Send for EncodedResponseInner<'req, B, N>
impl<'req, B, const N: usize = DEFAULT_HEADER_CAPACITY> !Sync for EncodedResponseInner<'req, B, N>
impl<'req, B, const N: usize = DEFAULT_HEADER_CAPACITY> !UnwindSafe for EncodedResponseInner<'req, B, N>
impl<'req, B, const N: usize> Freeze for EncodedResponseInner<'req, B, N>where
B: Freeze,
impl<'req, B, const N: usize> Unpin for EncodedResponseInner<'req, B, N>where
B: Unpin,
impl<'req, B, const N: usize> UnsafeUnpin for EncodedResponseInner<'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