pub fn add_cast_handler<T, H>(&mut self, handler: H) -> &mut Self
    where
        T: Cast,
        H: HandleCast<T>,
        T::Decoder: Default,
    {
        self.add_cast_handler_with_decoder(handler, DefaultFactory::new())
    }
/// Registers a handler for the notification RPC.
///
/// This equivalent to `add_cast_handler_with_encoder(handler, DefaultFactory::new())`.
///
/// # Panices
///
/// If a procedure which has `T::ID` already have been registered, the calling thread will panic.
Registers a handler for the notification RPC.
Registers a handler for the notification RPC .
pub fn add_cast_handler<T, H>(&mut self, handler: H) -> &mut Self
    where
        T: Cast,
        H: HandleCast<T>,
        T::Decoder: Default,
    {
        self.add_cast_handler_with_decoder(handler, DefaultFactory::new())
    }
pub fn add_cast_handler < T , H > ( & mut self , handler : H ) -> & mut Self where T : Cast , H : HandleCast < T > , T :: Decoder : Default , { self . add_cast_handler_with_decoder ( handler , DefaultFactory :: new ( ) ) }
Registers a handler for the notification RPC.
Registers a handler for the notification 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 .