[][src]Trait mini::aio::http::HttpHandler

pub trait HttpHandler {
    fn response(&mut self, data: Vec<u8>);

    fn error(&mut self, _error: Error) { ... }
}

Required methods

fn response(&mut self, data: Vec<u8>)

Loading content...

Provided methods

fn error(&mut self, _error: Error)

Loading content...

Implementors

impl<ErrorMsg, MSG, SuccessMsg> HttpHandler for DefaultHttpHandler<ErrorMsg, MSG, SuccessMsg> where
    MSG: Debug,
    ErrorMsg: Fn(Error) -> MSG,
    SuccessMsg: Fn(Vec<u8>) -> MSG, 
[src]

impl<MSG, SuccessMsg> HttpHandler for HttpHandlerIgnoreErr<MSG, SuccessMsg> where
    MSG: Debug,
    SuccessMsg: Fn(Vec<u8>) -> MSG, 
[src]

Loading content...