pub fn dispatch<Ctx>(ctx: &Ctx, msg: ClientMsg) -> Result<HandlerOutput<ClientResult>, Error>
where
    Ctx: ClientReader,
{
    match msg {
        ClientMsg::CreateClient(msg) => create_client::process(ctx, msg),
        ClientMsg::UpdateClient(msg) => update_client::process(ctx, msg),
        ClientMsg::UpgradeClient(msg) => upgrade_client::process(ctx, msg),
        _ => {
            unimplemented!()
        }
    }
}
/// General entry point for processing any message related to ICS2 (client functions) protocols.
General entry point for processing any message related to ICS2 (client functions) protocols.
General entry point for processing any message related to ICS2 ( client functions ) protocols .
pub fn dispatch<Ctx>(ctx: &Ctx, msg: ClientMsg) -> Result<HandlerOutput<ClientResult>, Error>
where
    Ctx: ClientReader,
{
    match msg {
        ClientMsg::CreateClient(msg) => create_client::process(ctx, msg),
        ClientMsg::UpdateClient(msg) => update_client::process(ctx, msg),
        ClientMsg::UpgradeClient(msg) => upgrade_client::process(ctx, msg),
        _ => {
            unimplemented!()
        }
    }
}
pub fn dispatch < Ctx > ( ctx : & Ctx , msg : ClientMsg ) -> Result < HandlerOutput < ClientResult > , Error > where Ctx : ClientReader , { match msg { ClientMsg :: CreateClient ( msg ) => create_client :: process ( ctx , msg ) , ClientMsg :: UpdateClient ( msg ) => update_client :: process ( ctx , msg ) , ClientMsg :: UpgradeClient ( msg ) => upgrade_client :: process ( ctx , msg ) , _ => { unimplemented ! ( ) } } }
General entry point for processing any message related to ICS2 (client functions) protocols.
General entry point for processing any message related to ICS2 ( client functions ) protocols .
ctx
&Ctx
msg
ClientMsg
ctx
&Ctx
msg
ClientMsg