pub enum ServeInner<'req, const N: usize = DEFAULT_HEADER_CAPACITY> {
Chunked(Chunked),
Fixed(FixedResponseInner<'req, N>),
Mono(MonoResponseInner<'req, N>),
}Variants§
Implementations§
Source§impl<'req, const N: usize> ServeInner<'req, N>
impl<'req, const N: usize> ServeInner<'req, N>
pub fn status(&self) -> StatusCode
Source§impl ServeInner<'static>
impl ServeInner<'static>
pub fn into_response(self) -> Response
Trait Implementations§
Source§impl<'req, const N: usize> Clone for ServeInner<'req, N>
impl<'req, const N: usize> Clone for ServeInner<'req, N>
Source§fn clone(&self) -> ServeInner<'req, N>
fn clone(&self) -> ServeInner<'req, N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'req, const N: usize> Debug for ServeInner<'req, N>
impl<'req, const N: usize> Debug for ServeInner<'req, N>
Source§impl<'req, const N: usize> From<FixedResponseInner<'req, N>> for ServeInner<'req, N>
impl<'req, const N: usize> From<FixedResponseInner<'req, N>> for ServeInner<'req, N>
Source§fn from(value: FixedResponseInner<'req, N>) -> Self
fn from(value: FixedResponseInner<'req, N>) -> Self
Converts to this type from the input type.
Source§impl<'req, const N: usize> From<MonoResponseInner<'req, N>> for ServeInner<'req, N>
impl<'req, const N: usize> From<MonoResponseInner<'req, N>> for ServeInner<'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 From<Response> for ServeInner<'static>
impl From<Response> for ServeInner<'static>
Source§impl<'req, const N: usize> IntoServeResponse<'req, N> for ServeInner<'req, N>
impl<'req, const N: usize> IntoServeResponse<'req, N> for ServeInner<'req, N>
fn into_serve_response(self) -> Self
Source§impl<'req, const N: usize> Shape<'req> for ServeInner<'req, N>
impl<'req, const N: usize> Shape<'req> for ServeInner<'req, N>
type StreamInner = NeverStream
fn write_into_slice(&self, out: &mut [u8], date: &[u8; 29]) -> Option<usize>
fn preserialize(&self) -> (Vec<u8>, usize)
fn write_head_split( self, out: &mut [u8], date: &[u8; 29], ) -> Option<(usize, Shared)>
fn body_for_gzip(&self) -> Option<&[u8]>
fn write_gzip_head( self, out: &mut [u8], date: &[u8; 29], body_len: usize, ) -> Option<usize>
fn status(&self) -> StatusCode
fn body_bytes(&self) -> &[u8] ⓘ
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)>
Auto Trait Implementations§
impl<'req, const N: usize = DEFAULT_HEADER_CAPACITY> !RefUnwindSafe for ServeInner<'req, N>
impl<'req, const N: usize = DEFAULT_HEADER_CAPACITY> !Send for ServeInner<'req, N>
impl<'req, const N: usize = DEFAULT_HEADER_CAPACITY> !Sync for ServeInner<'req, N>
impl<'req, const N: usize = DEFAULT_HEADER_CAPACITY> !UnwindSafe for ServeInner<'req, N>
impl<'req, const N: usize> Freeze for ServeInner<'req, N>
impl<'req, const N: usize> Unpin for ServeInner<'req, N>
impl<'req, const N: usize> UnsafeUnpin for ServeInner<'req, N>
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