pub struct ResultOut<Kind>(/* private fields */);Expand description
Answers with Kind when the handler succeeded, and with what its failure means otherwise.
A handler that can fail returns a Result, so this kind reads one. What a failure means is
stated by HttpErrorAlg on the error itself.
Trait Implementations§
Source§impl<Interpreter, Kind, Value, Error> OutputKindAlg<Interpreter, Result<Value, Error>> for ResultOut<Kind>
impl<Interpreter, Kind, Value, Error> OutputKindAlg<Interpreter, Result<Value, Error>> for ResultOut<Kind>
Source§type Transform = <Interpreter as ResultOutAlg>::Result<<Kind as OutputKindAlg<Interpreter, Value>>::Transform, Error>
type Transform = <Interpreter as ResultOutAlg>::Result<<Kind as OutputKindAlg<Interpreter, Value>>::Transform, Error>
The concrete converter chosen by
Interpreter for this output kind. Read moreAuto Trait Implementations§
impl<Kind> Freeze for ResultOut<Kind>where
PhantomData<Kind>: Freeze,
impl<Kind> RefUnwindSafe for ResultOut<Kind>where
PhantomData<Kind>: RefUnwindSafe,
impl<Kind> Send for ResultOut<Kind>where
PhantomData<Kind>: Send,
impl<Kind> Sync for ResultOut<Kind>where
PhantomData<Kind>: Sync,
impl<Kind> Unpin for ResultOut<Kind>where
PhantomData<Kind>: Unpin,
impl<Kind> UnsafeUnpin for ResultOut<Kind>where
PhantomData<Kind>: UnsafeUnpin,
impl<Kind> UnwindSafe for ResultOut<Kind>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.