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