Module finchers::endpoint[][src]

Components for constructing Endpoint.

Re-exports

pub use self::context::with_get_cx;
pub use self::context::ApplyContext;
pub use self::context::TaskContext;
pub use self::error::ApplyError;
pub use self::error::ApplyResult;
pub use self::wrapper::EndpointWrapExt;
pub use self::wrapper::Wrapper;

Modules

context

The definition of contextual information during applying endpoints.

error

Definition of ApplyError and supplemental components.

syntax

Components for building endpoints which matches to a specific HTTP path.

wrapper

Built-in wrappers.

Structs

And
Apply
ApplyRaw
ByRef
Cloned
EndpointObj
Lazy
LocalEndpointObj
Or
OrStrict
Unit

Traits

Endpoint

Trait representing an endpoint.

IntoEndpoint

Trait representing the transformation into an Endpoint.

IntoEndpointExt

A set of extension methods for composing multiple endpoints.

OutputEndpoint

A trait representing an endpoint with a constraint that the returned value can be convert into an HTTP response.

SendEndpoint

A trait representing an endpoint with a constraint that the returned "Future" to be transferred across thread boundaries.

Functions

apply

Create an endpoint from a function which takes the reference to ApplyContext and returns a future.

apply_raw

Create an endpoint from a function which takes the reference to ApplyContext and returns a future without wrapping its result into a tuple.

by_ref

Create an endpoint which simply returns a reference to the specified value.

cloned

Create an endpoint which simply clones the specified value.

lazy

Create an endpoint from the specified function which returns a Future.

unit

Create an endpoint which simply returns an unit (()).