pub fn add_call_handler<T, H>(&mut self, handler: H) -> &mut Self
    where
        T: Call,
        H: HandleCall<T>,
        T::ReqDecoder: Default,
        T::ResEncoder: Default,
    {
        self.add_call_handler_with_codec(handler, DefaultFactory::new(), DefaultFactory::new())
    }
/// Registers a handler for the request/response RPC.
///
/// This equivalent to
/// `add_call_handler_with_codec(handler, DefaultFactory::new(), DefaultFactory::new())`.
///
/// # Panices
///
/// If a procedure which has `T::ID` already have been registered, the calling thread will panic.
Registers a handler for the request/response RPC.
Registers a handler for the request / response RPC .
pub fn add_call_handler<T, H>(&mut self, handler: H) -> &mut Self
    where
        T: Call,
        H: HandleCall<T>,
        T::ReqDecoder: Default,
        T::ResEncoder: Default,
    {
        self.add_call_handler_with_codec(handler, DefaultFactory::new(), DefaultFactory::new())
    }
pub fn add_call_handler < T , H > ( & mut self , handler : H ) -> & mut Self where T : Call , H : HandleCall < T > , T :: ReqDecoder : Default , T :: ResEncoder : Default , { self . add_call_handler_with_codec ( handler , DefaultFactory :: new ( ) , DefaultFactory :: new ( ) ) }
Registers a handler for the request/response RPC.
Registers a handler for the request / response RPC .
&mut self
handler
H
&mut self
handler
H
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 .