pub struct TextHandlerImpl;Expand description
Interprets typed APIs as text descriptions.
Trait Implementations§
Source§impl BytesOutAlg for TextHandlerImpl
impl BytesOutAlg for TextHandlerImpl
Source§type Bytes<From> = TextBytesOutput
type Bytes<From> = TextBytesOutput
The raw-byte converter selected for
From.Source§impl Debug for TextHandlerImpl
impl Debug for TextHandlerImpl
Source§impl Default for TextHandlerImpl
impl Default for TextHandlerImpl
Source§fn default() -> TextHandlerImpl
fn default() -> TextHandlerImpl
Returns the “default value” for a type. Read more
Source§impl EmptyOutAlg for TextHandlerImpl
impl EmptyOutAlg for TextHandlerImpl
Source§type Empty<From> = TextEmptyOutput
type Empty<From> = TextEmptyOutput
The empty converter selected for
From.Source§impl FileOutAlg for TextHandlerImpl
impl FileOutAlg for TextHandlerImpl
Source§type File<From> = TextFileOutput
type File<From> = TextFileOutput
The streamed-file converter selected for
From.Source§impl HandlerAlg for TextHandlerImpl
impl HandlerAlg for TextHandlerImpl
Source§type Endpoint = TextEndpoint
type Endpoint = TextEndpoint
The interpreter’s homogeneous endpoint representation.
Source§impl<Context> HandlerContextAlg<Context> for TextHandlerImpl
impl<Context> HandlerContextAlg<Context> for TextHandlerImpl
Source§impl<Context, Inputs, Args, Transform, Answering, Answered, Output> HandlerEndpointAlg<Context, Inputs, Args, Transform, Output> for TextHandlerImplwhere
Transform: OutputKindAlg<TextHandlerImpl, Output, Transform = Answering>,
Answering: OutputAlg<Output, Output = Answered>,
impl<Context, Inputs, Args, Transform, Answering, Answered, Output> HandlerEndpointAlg<Context, Inputs, Args, Transform, Output> for TextHandlerImplwhere
Transform: OutputKindAlg<TextHandlerImpl, Output, Transform = Answering>,
Answering: OutputAlg<Output, Output = Answered>,
Source§fn finish_handler<Handler>(&self, _handler: Handler) -> TextEndpoint
fn finish_handler<Handler>(&self, _handler: Handler) -> TextEndpoint
Interprets a typed first-order handler as a concrete endpoint. Read more
Source§impl HeaderOutAlg for TextHandlerImpl
impl HeaderOutAlg for TextHandlerImpl
Source§type Header<Inner, Name> = TextHeaderOutput<Inner, Name>
type Header<Inner, Name> = TextHeaderOutput<Inner, Name>
The converter writing
Name beside the body Inner states.Source§impl HtmlOutAlg for TextHandlerImpl
impl HtmlOutAlg for TextHandlerImpl
Source§type Html<From> = TextHtmlOutput
type Html<From> = TextHtmlOutput
The HTML converter selected for
From.Source§impl HttpInputAlg for TextHandlerImpl
impl HttpInputAlg for TextHandlerImpl
Source§type Path<Input> = TextInputRole<PathRole, Input>
type Path<Input> = TextInputRole<PathRole, Input>
The interpreter’s path extractor for
Input.Source§type Query<Input> = TextInputRole<QueryRole, Input>
type Query<Input> = TextInputRole<QueryRole, Input>
The interpreter’s query extractor for
Input.Source§type Body<Input> = TextInputRole<BodyRole, Input>
type Body<Input> = TextInputRole<BodyRole, Input>
The interpreter’s request-body extractor for
Input.Source§type Form<Input> = TextInputRole<FormRole, Input>
type Form<Input> = TextInputRole<FormRole, Input>
The interpreter’s form-encoded request-body extractor for
Input.Source§type Multipart<Input> = TextInputRole<MultipartRole, Input>
type Multipart<Input> = TextInputRole<MultipartRole, Input>
The interpreter’s extractor for
Input read from a body arriving as parts.Source§type RawBody<Input> = TextInputRole<RawBodyRole, Input>
type RawBody<Input> = TextInputRole<RawBodyRole, Input>
The interpreter’s unread request-body extractor for
Input.Source§type Header<Input> = TextInputRole<HeaderRole, Input>
type Header<Input> = TextInputRole<HeaderRole, Input>
The interpreter’s header extractor for
Input. Read moreSource§type Cookie<Input> = TextInputRole<CookieRole, Input>
type Cookie<Input> = TextInputRole<CookieRole, Input>
The interpreter’s cookie extractor for
Input.Source§type Auth<Input> = TextInputRole<AuthRole, Input>
type Auth<Input> = TextInputRole<AuthRole, Input>
The interpreter’s authentication extractor for
Input.Source§type Context<Input> = TextInputRole<ContextRole, Input>
type Context<Input> = TextInputRole<ContextRole, Input>
The interpreter’s endpoint-context extractor for
Input.Source§impl HttpSelectorAlg for TextHandlerImpl
impl HttpSelectorAlg for TextHandlerImpl
Source§type Selector = TextSelector
type Selector = TextSelector
The interpreter’s HTTP selector representation.
Source§fn http_method(&self, method: HttpMethod) -> TextSelector
fn http_method(&self, method: HttpMethod) -> TextSelector
Interprets a request-method selector.
Source§fn http_path(&self, path: &RoutePath) -> TextSelector
fn http_path(&self, path: &RoutePath) -> TextSelector
Interprets an exact path selector.
Source§fn http_prefix(&self, prefix: &RoutePath) -> TextSelector
fn http_prefix(&self, prefix: &RoutePath) -> TextSelector
Interprets a path-prefix selector.
Source§impl JsonOutAlg for TextHandlerImpl
impl JsonOutAlg for TextHandlerImpl
Source§type Json<From> = TextJsonOutput
type Json<From> = TextJsonOutput
The JSON converter selected for
From.Source§impl RedirectOutAlg for TextHandlerImpl
impl RedirectOutAlg for TextHandlerImpl
Source§type Redirect<From> = TextRedirectOutput
type Redirect<From> = TextRedirectOutput
The redirect converter selected for
From.Source§impl ResultOutAlg for TextHandlerImpl
impl ResultOutAlg for TextHandlerImpl
Source§type Result<Inner, Error> = TextResultOutput<Inner, Error>
type Result<Inner, Error> = TextResultOutput<Inner, Error>
The converter answering with
Inner on success and with what Error means otherwise.Source§impl RouteAlg for TextHandlerImpl
impl RouteAlg for TextHandlerImpl
Source§type Selector = TextSelector
type Selector = TextSelector
The selector applied to a route or endpoint.
Source§type Endpoint = TextEndpoint
type Endpoint = TextEndpoint
The homogeneous endpoint representation lifted into routes.
Source§fn coproduct(&self, left: TextRoute, right: TextRoute) -> TextRoute
fn coproduct(&self, left: TextRoute, right: TextRoute) -> TextRoute
Forms the coproduct of two routes.
Source§fn precompose(&self, selector: TextSelector, route: TextRoute) -> TextRoute
fn precompose(&self, selector: TextSelector, route: TextRoute) -> TextRoute
Precomposes a route with a selector.
Source§fn lift(&self, endpoint: TextEndpoint) -> TextRoute
fn lift(&self, endpoint: TextEndpoint) -> TextRoute
Lifts an endpoint into a route.
Source§impl SelectorAlg for TextHandlerImpl
impl SelectorAlg for TextHandlerImpl
Source§type Selector = TextSelector
type Selector = TextSelector
The interpreter’s selector representation.
Source§fn identity(&self) -> TextSelector
fn identity(&self) -> TextSelector
Returns the selector identity.
Source§fn compose(&self, first: TextSelector, second: TextSelector) -> TextSelector
fn compose(&self, first: TextSelector, second: TextSelector) -> TextSelector
Composes two selectors from left to right.
Source§impl StatusOutAlg for TextHandlerImpl
impl StatusOutAlg for TextHandlerImpl
Source§type Status<Inner, const CODE: u16> = TextStatusOutput<Inner, CODE>
type Status<Inner, const CODE: u16> = TextStatusOutput<Inner, CODE>
The converter answering with
CODE and the body Inner states.Source§impl StreamOutAlg for TextHandlerImpl
impl StreamOutAlg for TextHandlerImpl
Source§type Stream<From> = TextStreamOutput
type Stream<From> = TextStreamOutput
The streamed converter selected for
From.Source§impl TextOutAlg for TextHandlerImpl
impl TextOutAlg for TextHandlerImpl
Source§type Text<From> = TextTextOutput
type Text<From> = TextTextOutput
The plain-text converter selected for
From.Auto Trait Implementations§
impl Freeze for TextHandlerImpl
impl RefUnwindSafe for TextHandlerImpl
impl Send for TextHandlerImpl
impl Sync for TextHandlerImpl
impl Unpin for TextHandlerImpl
impl UnsafeUnpin for TextHandlerImpl
impl UnwindSafe for TextHandlerImpl
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
impl<_INNER> HttpApiAlg for _INNERwhere
_INNER: HandlerAlg + HttpInputAlg + HttpRouteAlg<Endpoint = <_INNER as HandlerAlg>::Endpoint> + RouteAlg,
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.