pub struct HeadersOut<Kind, Headers>(/* private fields */);Expand description
Answers with the headers a named product states, beside the body Kind states.
The output twin of reading headers into a product: each member is a header, named by the words
its member name states, so cache_control is cache-control. A member stating nothing is not
written, and a member stating many values writes one header for each, as set-cookie needs. The
handler answers with the product and the body, in that order.
Trait Implementations§
Source§impl<Interpreter, Headers, Rest, Kind> OutputKindAlg<Interpreter, (Headers, Rest)> for HeadersOut<Kind, Headers>
impl<Interpreter, Headers, Rest, Kind> OutputKindAlg<Interpreter, (Headers, Rest)> for HeadersOut<Kind, Headers>
Source§type Transform = <Interpreter as HeadersOutAlg>::Headers<<Kind as OutputKindAlg<Interpreter, Rest>>::Transform, Headers>
type Transform = <Interpreter as HeadersOutAlg>::Headers<<Kind as OutputKindAlg<Interpreter, Rest>>::Transform, Headers>
The concrete converter chosen by
Interpreter for this output kind. Read moreSource§impl<Headers> WrapAlg for HeadersOut<(), Headers>
impl<Headers> WrapAlg for HeadersOut<(), Headers>
Source§type Wrap<Inner> = HeadersOut<Inner, Headers>
type Wrap<Inner> = HeadersOut<Inner, Headers>
The kind this wrapper makes around
Inner.Auto Trait Implementations§
impl<Kind, Headers> Freeze for HeadersOut<Kind, Headers>
impl<Kind, Headers> RefUnwindSafe for HeadersOut<Kind, Headers>
impl<Kind, Headers> Send for HeadersOut<Kind, Headers>
impl<Kind, Headers> Sync for HeadersOut<Kind, Headers>
impl<Kind, Headers> Unpin for HeadersOut<Kind, Headers>
impl<Kind, Headers> UnsafeUnpin for HeadersOut<Kind, Headers>
impl<Kind, Headers> UnwindSafe for HeadersOut<Kind, Headers>
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> HttpOperationExt<This> for This
impl<This> HttpOperationExt<This> for This
Source§impl<This> HttpProgramExt<This> for This
impl<This> HttpProgramExt<This> for This
Source§fn program<Program>(&self, program: Program) -> Routes<'_, This>
fn program<Program>(&self, program: Program) -> Routes<'_, This>
Interprets a named program for further route composition.
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.