Trait tk_http::websocket::Dispatcher
[−]
[src]
pub trait Dispatcher {
type Future: Future<Item = (), Error = Error>;
fn frame(&mut self, frame: &Frame) -> Self::Future;
}Dispatches messages received from websocket
Associated Types
Required Methods
fn frame(&mut self, frame: &Frame) -> Self::Future
A frame received
If backpressure is desired, method may return a future other than
futures::FutureResult.