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<Interpreter, Value, Rest, Kind, Name> OutputKindAlg<Interpreter, (Value, Rest)> for HeaderOut<Kind, Name>
impl<Interpreter, Value, Rest, Kind, Name> OutputKindAlg<Interpreter, (Value, Rest)> for HeaderOut<Kind, Name>
Source§type Transform = <Interpreter as HeaderOutAlg>::Header<<Kind as OutputKindAlg<Interpreter, Rest>>::Transform, Name>
type Transform = <Interpreter as HeaderOutAlg>::Header<<Kind as OutputKindAlg<Interpreter, Rest>>::Transform, Name>
The concrete converter chosen by
Interpreter for this output kind. Read moreAuto Trait Implementations§
impl<Kind, Name> Freeze for HeaderOut<Kind, Name>
impl<Kind, Name> RefUnwindSafe for HeaderOut<Kind, Name>
impl<Kind, Name> Send for HeaderOut<Kind, Name>
impl<Kind, Name> Sync for HeaderOut<Kind, Name>
impl<Kind, Name> Unpin for HeaderOut<Kind, Name>
impl<Kind, Name> UnsafeUnpin for HeaderOut<Kind, Name>
impl<Kind, Name> UnwindSafe for HeaderOut<Kind, Name>
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
Source§impl<This> HttpProgramExt<This> for This
impl<This> HttpProgramExt<This> for This
Source§fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
fn compile_http<Program>(
&self,
program: Program,
) -> <Program as HttpProgramAlg<This>>::Routewhere
Program: HttpProgramAlg<This>,
Compiles a named HTTP program with this interpreter.