pub struct StatusOut<Kind, const CODE: u16>(/* private fields */);Expand description
Answers with CODE and the body Kind states.
The status is part of what an endpoint is declared to answer, so it is stated once in the program rather than chosen inside a handler.
Trait Implementations§
Source§impl<Interpreter, From, Kind, const CODE: u16> OutputKindAlg<Interpreter, From> for StatusOut<Kind, CODE>
impl<Interpreter, From, Kind, const CODE: u16> OutputKindAlg<Interpreter, From> for StatusOut<Kind, CODE>
Source§type Transform = <Interpreter as StatusOutAlg>::Status<<Kind as OutputKindAlg<Interpreter, From>>::Transform, CODE>
type Transform = <Interpreter as StatusOutAlg>::Status<<Kind as OutputKindAlg<Interpreter, From>>::Transform, CODE>
The concrete converter chosen by
Interpreter for this output kind. Read moreAuto Trait Implementations§
impl<Kind, const CODE: u16> Freeze for StatusOut<Kind, CODE>where
PhantomData<Kind>: Freeze,
impl<Kind, const CODE: u16> RefUnwindSafe for StatusOut<Kind, CODE>where
PhantomData<Kind>: RefUnwindSafe,
impl<Kind, const CODE: u16> Send for StatusOut<Kind, CODE>where
PhantomData<Kind>: Send,
impl<Kind, const CODE: u16> Sync for StatusOut<Kind, CODE>where
PhantomData<Kind>: Sync,
impl<Kind, const CODE: u16> Unpin for StatusOut<Kind, CODE>where
PhantomData<Kind>: Unpin,
impl<Kind, const CODE: u16> UnsafeUnpin for StatusOut<Kind, CODE>where
PhantomData<Kind>: UnsafeUnpin,
impl<Kind, const CODE: u16> UnwindSafe for StatusOut<Kind, CODE>where
PhantomData<Kind>: UnwindSafe,
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.