pub struct TextResultOutput<Inner, Error>(/* private fields */);Expand description
Interprets a failing handler in text descriptions.
The description keeps the status a failure is answered with and discards the message, because what a surface states is that the failure has a status, not what it reads like.
Trait Implementations§
Source§impl<Inner, Error, Value> OutputAlg<Result<Value, Error>> for TextResultOutput<Inner, Error>where
Inner: OutputAlg<Value>,
Error: HttpErrorAlg,
impl<Inner, Error, Value> OutputAlg<Result<Value, Error>> for TextResultOutput<Inner, Error>where
Inner: OutputAlg<Value>,
Error: HttpErrorAlg,
Auto Trait Implementations§
impl<Inner, Error> Freeze for TextResultOutput<Inner, Error>
impl<Inner, Error> RefUnwindSafe for TextResultOutput<Inner, Error>
impl<Inner, Error> Send for TextResultOutput<Inner, Error>
impl<Inner, Error> Sync for TextResultOutput<Inner, Error>
impl<Inner, Error> Unpin for TextResultOutput<Inner, Error>
impl<Inner, Error> UnsafeUnpin for TextResultOutput<Inner, Error>
impl<Inner, Error> UnwindSafe for TextResultOutput<Inner, Error>
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.