pub fn finish<S, Pb>(self, service: S) -> Server<St, H, Ctl, Pb>
    where
        S: IntoServiceFactory<Pb, Message, State<St>>,
        Pb: ServiceFactory<Message, State<St>, Response = ()> + 'static,
        Pb::InitError: fmt::Debug,
        Error: From<Pb::Error> + From<Ctl::Error>,
    {
        Server {
            handshake: self.handshake,
            inner: Rc::new(ServerInner {
                handshake_timeout: self.handshake_timeout,
                config: self.config,
                publish: service.into_factory(),
                control: self.control,
                disconnect_timeout: self.disconnect_timeout,
                max_size: self.max_size,
                _t: marker::PhantomData,
            }),
        }
    }
/// Set service to execute for incoming links and create service factory
Set service to execute for incoming links and create service factory
Set service to execute for incoming links and create service factory
pub fn finish<S, Pb>(self, service: S) -> Server<St, H, Ctl, Pb>
    where
        S: IntoServiceFactory<Pb, Message, State<St>>,
        Pb: ServiceFactory<Message, State<St>, Response = ()> + 'static,
        Pb::InitError: fmt::Debug,
        Error: From<Pb::Error> + From<Ctl::Error>,
    {
        Server {
            handshake: self.handshake,
            inner: Rc::new(ServerInner {
                handshake_timeout: self.handshake_timeout,
                config: self.config,
                publish: service.into_factory(),
                control: self.control,
                disconnect_timeout: self.disconnect_timeout,
                max_size: self.max_size,
                _t: marker::PhantomData,
            }),
        }
    }
pub fn finish < S , Pb > ( self , service : S ) -> Server < St , H , Ctl , Pb > where S : IntoServiceFactory < Pb , Message , State < St > > , Pb : ServiceFactory < Message , State < St > , Response = ( ) > + ' static , Pb :: InitError : fmt :: Debug , Error : From < Pb :: Error > + From < Ctl :: Error > , { Server { handshake : self . handshake , inner : Rc :: new ( ServerInner { handshake_timeout : self . handshake_timeout , config : self . config , publish : service . into_factory ( ) , control : self . control , disconnect_timeout : self . disconnect_timeout , max_size : self . max_size , _t : marker :: PhantomData , } ) , } }
Set service to execute for incoming links and create service factory
Set service to execute for incoming links and create service factory
self
service
S
self
service
S