pub fn control<F, S>(self, service: F) -> ServerBuilder<St, H, S>
    where
        F: IntoServiceFactory<S, ControlFrame, State<St>>,
        S: ServiceFactory<ControlFrame, State<St>, Response = ()> + 'static,
        S::InitError: fmt::Debug,
        Error: From<S::Error>,
    {
        ServerBuilder {
            config: self.config,
            handshake: self.handshake,
            handshake_timeout: self.handshake_timeout,
            disconnect_timeout: self.disconnect_timeout,
            control: service.into_factory(),
            max_size: self.max_size,
            _t: marker::PhantomData,
        }
    }
/// Service to call with control frames
Service to call with control frames
Service to call with control frames
pub fn control<F, S>(self, service: F) -> ServerBuilder<St, H, S>
    where
        F: IntoServiceFactory<S, ControlFrame, State<St>>,
        S: ServiceFactory<ControlFrame, State<St>, Response = ()> + 'static,
        S::InitError: fmt::Debug,
        Error: From<S::Error>,
    {
        ServerBuilder {
            config: self.config,
            handshake: self.handshake,
            handshake_timeout: self.handshake_timeout,
            disconnect_timeout: self.disconnect_timeout,
            control: service.into_factory(),
            max_size: self.max_size,
            _t: marker::PhantomData,
        }
    }
pub fn control < F , S > ( self , service : F ) -> ServerBuilder < St , H , S > where F : IntoServiceFactory < S , ControlFrame , State < St > > , S : ServiceFactory < ControlFrame , State < St > , Response = ( ) > + ' static , S :: InitError : fmt :: Debug , Error : From < S :: Error > , { ServerBuilder { config : self . config , handshake : self . handshake , handshake_timeout : self . handshake_timeout , disconnect_timeout : self . disconnect_timeout , control : service . into_factory ( ) , max_size : self . max_size , _t : marker :: PhantomData , } }
Service to call with control frames
Service to call with control frames
self
service
F
self
service
F