pub struct TsRouteImpl;Expand description
Composes route selection as the method and path a call is made under.
Trait Implementations§
Source§impl Debug for TsRouteImpl
impl Debug for TsRouteImpl
Source§impl Default for TsRouteImpl
impl Default for TsRouteImpl
Source§fn default() -> TsRouteImpl
fn default() -> TsRouteImpl
Returns the “default value” for a type. Read more
Source§impl HttpSelectorAlg for TsRouteImpl
impl HttpSelectorAlg for TsRouteImpl
Source§type Selector = TsSelector
type Selector = TsSelector
The interpreter’s HTTP selector representation.
Source§fn http_method(&self, method: HttpMethod) -> TsSelector
fn http_method(&self, method: HttpMethod) -> TsSelector
Interprets a request-method selector.
Source§fn http_path(&self, path: &RoutePath) -> TsSelector
fn http_path(&self, path: &RoutePath) -> TsSelector
Interprets an exact path selector.
Source§fn http_prefix(&self, prefix: &RoutePath) -> TsSelector
fn http_prefix(&self, prefix: &RoutePath) -> TsSelector
Interprets a path-prefix selector.
Source§impl RouteAlg for TsRouteImpl
impl RouteAlg for TsRouteImpl
Source§type Route = TsHttpModule
type Route = TsHttpModule
The interpreter’s composed route representation.
Source§type Selector = TsSelector
type Selector = TsSelector
The selector applied to a route or endpoint.
Source§fn initial(&self) -> TsHttpModule
fn initial(&self) -> TsHttpModule
Returns the initial route.
Source§fn coproduct(&self, left: TsHttpModule, right: TsHttpModule) -> TsHttpModule
fn coproduct(&self, left: TsHttpModule, right: TsHttpModule) -> TsHttpModule
Forms the coproduct of two routes.
Source§fn precompose(&self, selector: TsSelector, route: TsHttpModule) -> TsHttpModule
fn precompose(&self, selector: TsSelector, route: TsHttpModule) -> TsHttpModule
Precomposes a route with a selector.
Source§fn lift(&self, call: TsCall) -> TsHttpModule
fn lift(&self, call: TsCall) -> TsHttpModule
Lifts an endpoint into a route.
Source§impl SelectorAlg for TsRouteImpl
impl SelectorAlg for TsRouteImpl
Source§type Selector = TsSelector
type Selector = TsSelector
The interpreter’s selector representation.
Source§fn identity(&self) -> TsSelector
fn identity(&self) -> TsSelector
Returns the selector identity.
Source§fn compose(&self, first: TsSelector, second: TsSelector) -> TsSelector
fn compose(&self, first: TsSelector, second: TsSelector) -> TsSelector
Composes two selectors from left to right.
Auto Trait Implementations§
impl Freeze for TsRouteImpl
impl RefUnwindSafe for TsRouteImpl
impl Send for TsRouteImpl
impl Sync for TsRouteImpl
impl Unpin for TsRouteImpl
impl UnsafeUnpin for TsRouteImpl
impl UnwindSafe for TsRouteImpl
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.
impl<_INNER> HttpRouteAlg for _INNERwhere
_INNER: HttpSelectorAlg<Selector = <_INNER as SelectorAlg>::Selector> + RouteAlg<Selector = <_INNER as SelectorAlg>::Selector> + SelectorAlg,
Source§impl<This> RouteAlgExt<This> for Thiswhere
This: RouteAlg,
impl<This> RouteAlgExt<This> for Thiswhere
This: RouteAlg,
Source§impl<This> ShapeProgramExt<This> for This
impl<This> ShapeProgramExt<This> for This
Source§fn compile_shape<Program>(
&self,
program: Program,
) -> <Program as ShapeProgramAlg<This>>::Tywhere
Program: ShapeProgramAlg<This>,
fn compile_shape<Program>(
&self,
program: Program,
) -> <Program as ShapeProgramAlg<This>>::Tywhere
Program: ShapeProgramAlg<This>,
Folds a declaration with this interpretation.