Trait net::protocols::ProtocolHandler

source ·
pub trait ProtocolHandler: Send + Sync {
    // Required method
    fn load(
        &self,
        request: &mut Request,
        done_chan: &mut DoneChannel,
        context: &FetchContext,
    ) -> Pin<Box<dyn Future<Output = Response> + Send>>;
}

Required Methods§

source

fn load( &self, request: &mut Request, done_chan: &mut DoneChannel, context: &FetchContext, ) -> Pin<Box<dyn Future<Output = Response> + Send>>

Implementors§