Trait cosworth::prelude::server::HttpHandlerTask
source · pub trait HttpHandlerTask {
fn poll_io(&mut self, io: &mut dyn Writer) -> Result<Async<bool>, Error>;
fn poll_completed(&mut self) -> Result<Async<()>, Error> { ... }
fn disconnected(&mut self) { ... }
}
Expand description
Low level http request handler
Required Methods§
Provided Methods§
sourcefn poll_completed(&mut self) -> Result<Async<()>, Error>
fn poll_completed(&mut self) -> Result<Async<()>, Error>
Poll task, this method is used before or after io object is available
sourcefn disconnected(&mut self)
fn disconnected(&mut self)
Connection is disconnected
Trait Implementations§
source§impl HttpHandlerTask for Box<dyn HttpHandlerTask + 'static, Global>
impl HttpHandlerTask for Box<dyn HttpHandlerTask + 'static, Global>
source§fn poll_io(&mut self, io: &mut dyn Writer) -> Result<Async<bool>, Error>
fn poll_io(&mut self, io: &mut dyn Writer) -> Result<Async<bool>, Error>
Poll task when io object is available
source§fn poll_completed(&mut self) -> Result<Async<()>, Error>
fn poll_completed(&mut self) -> Result<Async<()>, Error>
Poll task, this method is used before or after io object is available
source§fn disconnected(&mut self)
fn disconnected(&mut self)
Connection is disconnected