pub fn new<F: IntoService<S>>(framed: Framed<T, U>, service: F) -> Self {
        Dispatcher {
            inner: InnerDispatcher {
                framed,
                sink: None,
                rx: mpsc::channel().1,
                service: service.into_service(),
                state: FramedState::Processing,
                disconnect_timeout: 1000,
            },
        }
    }
/// Construct new `Dispatcher` instance
Construct new `Dispatcher` instance
Construct new ` Dispatcher ` instance
pub fn new<F: IntoService<S>>(framed: Framed<T, U>, service: F) -> Self {
        Dispatcher {
            inner: InnerDispatcher {
                framed,
                sink: None,
                rx: mpsc::channel().1,
                service: service.into_service(),
                state: FramedState::Processing,
                disconnect_timeout: 1000,
            },
        }
    }
pub fn new < F : IntoService < S > > ( framed : Framed < T , U > , service : F ) -> Self { Dispatcher { inner : InnerDispatcher { framed , sink : None , rx : mpsc :: channel ( ) . 1 , service : service . into_service ( ) , state : FramedState :: Processing , disconnect_timeout : 1000 , } , } }
Construct new `Dispatcher` instance
Construct new ` Dispatcher ` instance
framed
Framed<T, U>
service
F