Trait DeserMethod

Source
pub trait DeserMethod: DynMethod + Deserialize {
    // Required method
    fn upcast_box(self: Box<Self>) -> Box<dyn DynMethod>;
}
Expand description

A DynMethod that can be deserialized.

We use typetag here so that we define Methods in other crates.

Use derive_deftly(DynMethod) for a template to declare one of these.

Required Methods§

Source

fn upcast_box(self: Box<Self>) -> Box<dyn DynMethod>

Up-cast to a Box<dyn DynMethod>.

Implementors§

impl DeserMethod for CookieBegin

impl DeserMethod for CookieContinue

impl DeserMethod for Authenticate

impl DeserMethod for RpcCancel

impl DeserMethod for RpcRelease

impl DeserMethod for ListAllRpcMethods

impl DeserMethod for GetClient

impl DeserMethod for NewOneshotClient