Skip to main content

HeaderOut

Struct HeaderOut 

Source
pub struct HeaderOut<Kind, Name>(/* private fields */);
Expand description

Answers with a header the handler states, beside the body Kind states.

The handler answers with the header’s value and the body, in that order, because a header whose value an endpoint cannot know is a header only the handler can state. Which header it is, is stated here: a name is all a header is to a program.

Trait Implementations§

Source§

impl<Kind: Debug, Name: Debug> Debug for HeaderOut<Kind, Name>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<Kind: Default, Name: Default> Default for HeaderOut<Kind, Name>

Source§

fn default() -> HeaderOut<Kind, Name>

Returns the “default value” for a type. Read more
Source§

impl<Interpreter, Value, Rest, Kind, Name> OutputKindAlg<Interpreter, (Value, Rest)> for HeaderOut<Kind, Name>
where Interpreter: HeaderOutAlg + ?Sized, Kind: OutputKindAlg<Interpreter, Rest>,

Source§

type Transform = <Interpreter as HeaderOutAlg>::Header<<Kind as OutputKindAlg<Interpreter, Rest>>::Transform, Name>

The concrete converter chosen by Interpreter for this output kind. Read more

Auto Trait Implementations§

§

impl<Kind, Name> Freeze for HeaderOut<Kind, Name>
where PhantomData<fn(Kind, Name)>: Freeze,

§

impl<Kind, Name> RefUnwindSafe for HeaderOut<Kind, Name>
where PhantomData<fn(Kind, Name)>: RefUnwindSafe,

§

impl<Kind, Name> Send for HeaderOut<Kind, Name>
where PhantomData<fn(Kind, Name)>: Send,

§

impl<Kind, Name> Sync for HeaderOut<Kind, Name>
where PhantomData<fn(Kind, Name)>: Sync,

§

impl<Kind, Name> Unpin for HeaderOut<Kind, Name>
where PhantomData<fn(Kind, Name)>: Unpin,

§

impl<Kind, Name> UnsafeUnpin for HeaderOut<Kind, Name>
where PhantomData<fn(Kind, Name)>: UnsafeUnpin,

§

impl<Kind, Name> UnwindSafe for HeaderOut<Kind, Name>
where PhantomData<fn(Kind, Name)>: 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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<This> HttpProgramExt<This> for This

Source§

fn compile_http<Program>( &self, program: Program, ) -> <Program as HttpProgramAlg<This>>::Route
where Program: HttpProgramAlg<This>,

Compiles a named HTTP program with this interpreter.

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<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.