pub struct MonoResponseInner<'req, const N: usize = DEFAULT_HEADER_CAPACITY> { /* private fields */ }Implementations§
Source§impl<'req, const N: usize> MonoResponseInner<'req, N>
impl<'req, const N: usize> MonoResponseInner<'req, N>
pub fn status(&self) -> StatusCode
pub fn headers(&self) -> &HeaderList
pub fn headers_mut(&mut self) -> &mut HeaderList
pub fn insert_header( &mut self, name: HeaderName, value: HeaderValue, ) -> &mut Self
pub fn wire_headers(&self) -> Shared
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, const N: usize> Clone for MonoResponseInner<'req, N>
impl<'req, const N: usize> Clone for MonoResponseInner<'req, N>
Source§impl<'req, const N: usize> Debug for MonoResponseInner<'req, N>
impl<'req, const N: usize> Debug for MonoResponseInner<'req, N>
Source§impl<'req, const N: usize> From<MonoResponseInner<'req, N>> for Serve<'req, N>
impl<'req, const N: usize> From<MonoResponseInner<'req, N>> for Serve<'req, N>
Source§fn from(value: MonoResponseInner<'req, N>) -> Self
fn from(value: MonoResponseInner<'req, N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> From<MonoResponseInner<'static, N>> for Response
impl<const N: usize> From<MonoResponseInner<'static, N>> for Response
Source§fn from(response: MonoResponseInner<'static, N>) -> Self
fn from(response: MonoResponseInner<'static, N>) -> Self
Converts to this type from the input type.
Source§impl<'req, const N: usize> IntoResponseShape<'req> for MonoResponseInner<'req, N>
impl<'req, const N: usize> IntoResponseShape<'req> for MonoResponseInner<'req, N>
type Shape = MonoResponseInner<'req, N>
fn into_response_shape(self) -> Self::Shape
Source§impl<'req, const N: usize> Shape<'req> for MonoResponseInner<'req, N>
impl<'req, const N: usize> Shape<'req> for MonoResponseInner<'req, N>
type Metadata = InlineShape
fn prepare( self, mode: Preparation, _gzip: Option<&mut Gzip>, out: &mut [u8], date: &[u8; 29], ) -> Prepared<<Self::Metadata as ShapeMetadata>::Stream>
fn response_view(&self) -> Option<ResponseView>
fn emit<E: ResponseSink>(self, sink: &mut E) -> bool
Auto Trait Implementations§
impl<'req, const N: usize = DEFAULT_HEADER_CAPACITY> !RefUnwindSafe for MonoResponseInner<'req, N>
impl<'req, const N: usize = DEFAULT_HEADER_CAPACITY> !Send for MonoResponseInner<'req, N>
impl<'req, const N: usize = DEFAULT_HEADER_CAPACITY> !Sync for MonoResponseInner<'req, N>
impl<'req, const N: usize = DEFAULT_HEADER_CAPACITY> !UnwindSafe for MonoResponseInner<'req, N>
impl<'req, const N: usize> Freeze for MonoResponseInner<'req, N>where
HotHeadInner<'req, N>: Freeze,
impl<'req, const N: usize> Unpin for MonoResponseInner<'req, N>where
HotHeadInner<'req, N>: Unpin,
impl<'req, const N: usize> UnsafeUnpin for MonoResponseInner<'req, N>where
HotHeadInner<'req, N>: 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