Skip to main content

Response

Struct Response 

Source
pub struct Response<F, S = [u8; 3]> { /* private fields */ }
Expand description

HTTP/2 and HTTP/3 fields prefixed by the selected status.

Implementations§

Source§

impl<F> Response<F>

Source

pub const fn new(status: Code, fields: F) -> Self

Trait Implementations§

Source§

impl<F, S: Constant> Constant for Response<F, PhantomData<fn() -> S>>

Source§

const ENTRY: Entry<'static>

Source§

impl<F: Source<Application>> Source for Response<F>

Source§

const SECTION_SIZE: Option<usize> = Self::SIZE

Source§

fn emit<'field, Out: Sink<'field>>( &'field self, sink: Out, ) -> Result<Out, Out::Error>

Source§

impl<F: Source<Application>, S: Constant> Source for Response<F, PhantomData<fn() -> S>>

Source§

const SECTION_SIZE: Option<usize> = Self::SIZE

Source§

fn emit<'field, Out: Sink<'field>>( &'field self, sink: Out, ) -> Result<Out, Out::Error>

Auto Trait Implementations§

§

impl<F, S> Forget for Response<F, S>

§

impl<F, S> Freeze for Response<F, S>
where S: Freeze, F: Freeze,

§

impl<F, S> Move for Response<F, S>

§

impl<F, S> RefUnwindSafe for Response<F, S>

§

impl<F, S> Send for Response<F, S>
where S: Send, F: Send,

§

impl<F, S> Sync for Response<F, S>
where S: Sync, F: Sync,

§

impl<F, S> Unpin for Response<F, S>
where S: Unpin, F: Unpin,

§

impl<F, S> UnsafeUnpin for Response<F, S>
where S: UnsafeUnpin, F: UnsafeUnpin,

§

impl<F, S> UnwindSafe for Response<F, S>
where S: UnwindSafe, F: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<L, R> Convert<Either<L, R>, 1> for L

Source§

fn into(self) -> Either<L, R>

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

Safety Read more
Source§

impl<L, R> Convert<Either<L, R>, 2> for R

Source§

fn into(self) -> Either<L, R>

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

Safety Read more
Source§

impl<T> Convert<T> for T

Source§

fn into(self) -> T

Source§

unsafe fn take_into(source: *mut Self, place: &mut MaybeUninit<T>)
where Self: Sized,

Safety Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<S> Source<Polled> for S

Source§

fn length(&self) -> u64

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.