Trait rok::endpoint::Endpoint [−][src]
Required methods
#[must_use]fn call<'life0, 'async_trait>(
&'life0 self,
req: Request
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
req: Request
) -> Pin<Box<dyn Future<Output = Response> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Invoke the endpoint within the given context
Implementors
impl<F: Send + Sync + 'static, Fut, Res> Endpoint for F where
F: Fn(Request) -> Fut,
Fut: Future<Output = Res> + Send + 'static,
Res: Into<Response> + 'static,
[src]
F: Fn(Request) -> Fut,
Fut: Future<Output = Res> + Send + 'static,
Res: Into<Response> + 'static,