pub fn add_call_handler_with_decoder<T, H, D>(
        &mut self,
        handler: H,
        decoder_factory: D,
    ) -> &mut Self
    where
        T: Call,
        H: HandleCall<T>,
        D: Factory<Item = T::ReqDecoder> + Send + Sync + 'static,
        T::ResEncoder: Default,
    {
        self.add_call_handler_with_codec(handler, decoder_factory, DefaultFactory::new())
    }
/// Registers a handler (with the given decoder maker) for the request/response RPC.
///
/// This equivalent to `add_call_handler_with_codec(handler, decoder_factory, DefaultFactory::new())`.
///
/// # Panices
///
/// If a procedure which has `T::ID` already have been registered, the calling thread will panic.
Registers a handler (with the given decoder maker) for the request/response RPC.
Registers a handler ( with the given decoder maker ) for the request / response RPC .
pub fn add_call_handler_with_decoder<T, H, D>(
        &mut self,
        handler: H,
        decoder_factory: D,
    ) -> &mut Self
    where
        T: Call,
        H: HandleCall<T>,
        D: Factory<Item = T::ReqDecoder> + Send + Sync + 'static,
        T::ResEncoder: Default,
    {
        self.add_call_handler_with_codec(handler, decoder_factory, DefaultFactory::new())
    }
pub fn add_call_handler_with_decoder < T , H , D > ( & mut self , handler : H , decoder_factory : D , ) -> & mut Self where T : Call , H : HandleCall < T > , D : Factory < Item = T :: ReqDecoder > + Send + Sync + ' static , T :: ResEncoder : Default , { self . add_call_handler_with_codec ( handler , decoder_factory , DefaultFactory :: new ( ) ) }
Registers a handler (with the given decoder maker) for the request/response RPC.
Registers a handler ( with the given decoder maker ) for the request / response RPC .
&mut self
handler
H
decoder_factory
D
&mut self
handler
H
decoder_factory
D
panices
If a procedure which has `T::ID` already have been registered, the calling thread will panic.
If a procedure which has ` T :: ID ` already have been registered the calling thread will panic .