pub enum ServeInner<'req> {
Chunked(Chunked),
Fixed(FixedResponseInner<'req>),
Mono(MonoResponseInner<'req>),
}Variants§
Implementations§
Source§impl<'req> ServeInner<'req>
impl<'req> ServeInner<'req>
pub fn status(&self) -> StatusCode
Source§impl ServeInner<'static>
impl ServeInner<'static>
pub fn into_response(self) -> Response
Trait Implementations§
Source§impl<'req> Clone for ServeInner<'req>
impl<'req> Clone for ServeInner<'req>
Source§fn clone(&self) -> ServeInner<'req>
fn clone(&self) -> ServeInner<'req>
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> Debug for ServeInner<'req>
impl<'req> Debug for ServeInner<'req>
Source§impl<'req> From<FixedResponseInner<'req>> for ServeInner<'req>
impl<'req> From<FixedResponseInner<'req>> for ServeInner<'req>
Source§fn from(value: FixedResponseInner<'req>) -> Self
fn from(value: FixedResponseInner<'req>) -> Self
Converts to this type from the input type.
Source§impl<'req> From<MonoResponseInner<'req>> for ServeInner<'req>
impl<'req> From<MonoResponseInner<'req>> for ServeInner<'req>
Source§fn from(value: MonoResponseInner<'req>) -> Self
fn from(value: MonoResponseInner<'req>) -> 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> IntoServeResponse<'req> for ServeInner<'req>
impl<'req> IntoServeResponse<'req> for ServeInner<'req>
fn into_serve_response(self) -> Self
Source§impl<'req> Shape<'req> for ServeInner<'req>
impl<'req> Shape<'req> for ServeInner<'req>
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_only( &self, out: &mut [u8], date: &[u8; 29], ) -> Option<(usize, &'static [u8])>
fn write_head_split( self, out: &mut [u8], date: &[u8; 29], ) -> Option<(usize, Shared)>
fn preserialize_static(&self) -> Option<(Vec<u8>, usize, &'static [u8])>
fn body_for_gzip(&self) -> Option<&[u8]>
fn apply_gzip_body(&mut self, compressed: Shared)
fn status(&self) -> StatusCode
fn body_bytes(&self) -> &[u8] ⓘ
fn headers_wire(&self) -> Shared
fn write_head_stream( self, out: &mut [u8], date: &[u8; 29], ) -> Option<(usize, Self::StreamInner)>
Auto Trait Implementations§
impl<'req> !RefUnwindSafe for ServeInner<'req>
impl<'req> !Send for ServeInner<'req>
impl<'req> !Sync for ServeInner<'req>
impl<'req> !UnwindSafe for ServeInner<'req>
impl<'req> Freeze for ServeInner<'req>
impl<'req> Unpin for ServeInner<'req>
impl<'req> UnsafeUnpin for ServeInner<'req>
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