[][src]Trait gotham::router::builder::ReplacePathExtractor

pub trait ReplacePathExtractor<T> where
    T: PathExtractor<Body>, 
{ type Output: DefineSingleRoute; }

Describes the operation of replacing a PathExtractor on a route. This trait exists to remove type clutter from the documentation of SingleRouteBuilder::with_path_extractor.

Associated Types

type Output: DefineSingleRoute

The type returned when replacing the PathExtractor with the target type.

Loading content...

Implementors

impl<'a, M, C, P, PE, QSE, NPE> ReplacePathExtractor<NPE> for SingleRouteBuilder<'a, M, C, P, PE, QSE> where
    M: RouteMatcher + Send + Sync + 'static,
    C: PipelineHandleChain<P> + Send + Sync + 'static,
    P: RefUnwindSafe + Send + Sync + 'static,
    PE: PathExtractor<Body> + Send + Sync + 'static,
    QSE: QueryStringExtractor<Body> + Send + Sync + 'static,
    NPE: PathExtractor<Body> + Send + Sync + 'static, 
[src]

type Output = SingleRouteBuilder<'a, M, C, P, NPE, QSE>

Loading content...