Skip to main content

Handler

Trait Handler 

Source
pub trait Handler:
    Send
    + Sync
    + 'static {
    // Required method
    fn handle(
        &self,
        req: PortableRequest,
    ) -> Pin<Box<dyn Future<Output = PortableResponse> + Send + '_>>;
}

Required Methods§

Source

fn handle( &self, req: PortableRequest, ) -> Pin<Box<dyn Future<Output = PortableResponse> + Send + '_>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§