pub struct MonoResponseInner<'req, const N: usize = sark_core::::http::response::mono::MonoResponseInner::{constant#0}> { /* 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 MonoResponseInner<'req, N>
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§fn clone(&self) -> MonoResponseInner<'req, N>
fn clone(&self) -> MonoResponseInner<'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 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>) -> Serve<'req, N>
fn from(value: MonoResponseInner<'req, N>) -> Serve<'req, N>
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>) -> Response
fn from(response: MonoResponseInner<'static, N>) -> Response
Converts to this type from the input type.
Source§impl<'req, const N: usize> NativeResponse<'req> for MonoResponseInner<'req, N>
impl<'req, const N: usize> NativeResponse<'req> for MonoResponseInner<'req, N>
const BODY_KIND: ResponseKind = sark_core::http::body_kind::ResponseKind::Inline
type Kind = Sync
type Shape = MonoResponseInner<'req, N>
type Stream = NeverStream
fn into_route_response(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 StreamInner = NeverStream
fn prepare( self, mode: Preparation, _gzip: Option<&mut Gzip>, out: &mut [u8], date: &[u8; 29], ) -> Prepared<<MonoResponseInner<'req, N> as Shape<'req>>::StreamInner>
fn response_view(&self) -> Option<ResponseView>
Auto Trait Implementations§
impl<'req, const N: usize = sark_core::::http::response::mono::MonoResponseInner::{constant#0}> !RefUnwindSafe for MonoResponseInner<'req, N>
impl<'req, const N: usize = sark_core::::http::response::mono::MonoResponseInner::{constant#0}> !Send for MonoResponseInner<'req, N>
impl<'req, const N: usize = sark_core::::http::response::mono::MonoResponseInner::{constant#0}> !Sync for MonoResponseInner<'req, N>
impl<'req, const N: usize = sark_core::::http::response::mono::MonoResponseInner::{constant#0}> !UnwindSafe for MonoResponseInner<'req, N>
impl<'req, const N: usize> Freeze for MonoResponseInner<'req, N>
impl<'req, const N: usize> Unpin for MonoResponseInner<'req, N>
impl<'req, const N: usize> UnsafeUnpin for MonoResponseInner<'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