pub enum Serve<'req, const N: usize = DEFAULT_HEADER_CAPACITY> {
Chunked(Chunked),
Fixed(FixedResponse<'req, N>),
Mono(MonoResponseInner<'req, N>),
}Variants§
Implementations§
Trait Implementations§
Source§impl<'req, const N: usize> From<FixedResponse<'req, N>> for Serve<'req, N>
impl<'req, const N: usize> From<FixedResponse<'req, N>> for Serve<'req, N>
Source§fn from(value: FixedResponse<'req, N>) -> Self
fn from(value: FixedResponse<'req, N>) -> Self
Converts to this type from the input type.
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<'req, const N: usize> Shape<'req> for Serve<'req, N>
impl<'req, const N: usize> Shape<'req> for Serve<'req, N>
type StreamInner = NeverStream
fn prepare( self, mode: Preparation, gzip: Option<&mut Gzip>, out: &mut [u8], date: &[u8; 29], ) -> Prepared<Self::StreamInner>
fn response_view(&self) -> Option<ResponseView>
Auto Trait Implementations§
impl<'req, const N: usize = DEFAULT_HEADER_CAPACITY> !RefUnwindSafe for Serve<'req, N>
impl<'req, const N: usize = DEFAULT_HEADER_CAPACITY> !Send for Serve<'req, N>
impl<'req, const N: usize = DEFAULT_HEADER_CAPACITY> !Sync for Serve<'req, N>
impl<'req, const N: usize = DEFAULT_HEADER_CAPACITY> !UnwindSafe for Serve<'req, N>
impl<'req, const N: usize> Freeze for Serve<'req, N>
impl<'req, const N: usize> Unpin for Serve<'req, N>
impl<'req, const N: usize> UnsafeUnpin for Serve<'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