Trait Handler
Other items inkeiro
pub trait Handler<E: Into<Box<dyn Error + Send + Sync>>>: Send + Sync + 'static { fn call( &self, req: Request<Body> ) -> Pin<Box<dyn Future<Output = Result<Response<Body>, E>> + Send + Sync>>; }
fn call( &self, req: Request<Body>) -> Pin<Box<dyn Future<Output = Result<Response<Body>, E>> + Send + Sync>>
impl<E> Debug for dyn Handler<E>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more
impl<F: Send + Sync + 'static, R, E> Handler<E> for F where F: Fn(Request<Body>) -> R + Send + Sync, R: Future<Output = Result<Response<Body>, E>> + Send + Sync + 'static, E: Into<Box<dyn Error + Send + Sync>>,