[−][src]Trait nuclear_router::Handler
Required methods
fn call(
&self,
req: Request<Body>,
params: OwnedCaptures
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn StdError + Send + Sync>>> + Send + 'static>>
&self,
req: Request<Body>,
params: OwnedCaptures
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn StdError + Send + Sync>>> + Send + 'static>>
Implementations on Foreign Types
impl Handler for Box<dyn Handler + Send + Sync>
[src]
fn call(
&self,
req: Request<Body>,
params: OwnedCaptures
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn StdError + Send + Sync>>> + Send + 'static>>
[src]
&self,
req: Request<Body>,
params: OwnedCaptures
) -> Pin<Box<dyn Future<Output = Result<Response<Body>, Box<dyn StdError + Send + Sync>>> + Send + 'static>>
Implementors
impl<F, E, Fut> Handler for F where
F: Fn(Request<Body>, OwnedCaptures) -> Fut,
E: StdError + Send + Sync + 'static,
Fut: Future<Output = Result<Response<Body>, E>> + Send + 'static,
[src]
F: Fn(Request<Body>, OwnedCaptures) -> Fut,
E: StdError + Send + Sync + 'static,
Fut: Future<Output = Result<Response<Body>, E>> + Send + 'static,