pub struct DirectHeaderOutput<Inner, Name>(/* private fields */);Expand description
Answers with a header the handler stated, beside the body it stated.
Trait Implementations§
Source§impl<Inner, Name, Value, Rest> OutputAlg<(Value, Rest)> for DirectHeaderOutput<Inner, Name>
impl<Inner, Name, Value, Rest> OutputAlg<(Value, Rest)> for DirectHeaderOutput<Inner, Name>
Source§type Output = DirectResponse
type Output = DirectResponse
The transport value produced from the semantic handler result.
Source§fn output((value, rest): (Value, Rest)) -> Self::Output
fn output((value, rest): (Value, Rest)) -> Self::Output
Converts a handler result into the declared API output.
Auto Trait Implementations§
impl<Inner, Name> Freeze for DirectHeaderOutput<Inner, Name>
impl<Inner, Name> RefUnwindSafe for DirectHeaderOutput<Inner, Name>
impl<Inner, Name> Send for DirectHeaderOutput<Inner, Name>
impl<Inner, Name> Sync for DirectHeaderOutput<Inner, Name>
impl<Inner, Name> Unpin for DirectHeaderOutput<Inner, Name>
impl<Inner, Name> UnsafeUnpin for DirectHeaderOutput<Inner, Name>
impl<Inner, Name> UnwindSafe for DirectHeaderOutput<Inner, 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.