pub struct FixedResponseInner<'req> { /* private fields */ }Implementations§
Source§impl<'req> FixedResponseInner<'req>
impl<'req> FixedResponseInner<'req>
pub fn direct<B>( status: StatusCode, static_headers: &'static [u8], headers: HeadersInner<'req>, body: B, ) -> Self
pub fn status(&self) -> StatusCode
pub fn body_ref(&self) -> &[u8] ⓘ
pub fn has_content_encoding(&self) -> bool
pub fn wire_headers(&self) -> Shared
pub fn write_preserialized( out: &mut [u8], template: &[u8], date_offset: usize, date: &[u8; 29], ) -> Option<usize>
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)>
pub fn apply_gzip(&mut self, compressed: Shared)
Trait Implementations§
Source§impl<'req> Clone for FixedResponseInner<'req>
impl<'req> Clone for FixedResponseInner<'req>
Source§fn clone(&self) -> FixedResponseInner<'req>
fn clone(&self) -> FixedResponseInner<'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 FixedResponseInner<'req>
impl<'req> Debug for FixedResponseInner<'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 From<FixedResponseInner<'static>> for Response
impl From<FixedResponseInner<'static>> for Response
Source§fn from(response: FixedResponseInner<'static>) -> Self
fn from(response: FixedResponseInner<'static>) -> Self
Converts to this type from the input type.
Source§impl<'req> IntoServeResponse<'req> for FixedResponseInner<'req>
impl<'req> IntoServeResponse<'req> for FixedResponseInner<'req>
fn into_serve_response(self) -> ServeInner<'req>
Source§impl<'req> Shape<'req> for FixedResponseInner<'req>
impl<'req> Shape<'req> for FixedResponseInner<'req>
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 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_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> !RefUnwindSafe for FixedResponseInner<'req>
impl<'req> !Send for FixedResponseInner<'req>
impl<'req> !Sync for FixedResponseInner<'req>
impl<'req> !UnwindSafe for FixedResponseInner<'req>
impl<'req> Freeze for FixedResponseInner<'req>
impl<'req> Unpin for FixedResponseInner<'req>
impl<'req> UnsafeUnpin for FixedResponseInner<'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