pub trait Dispatch: Serialize + Deserialize {
    // Required method
    fn run(
        &self,
        context: &dyn Any,
        hsm: &Module,
        session: Option<&Session>
    ) -> Result<Box<dyn Annotate>>;

    // Provided method
    fn leaf(&self) -> &dyn Dispatch
       where Self: Sized { ... }
}

Required Methods§

source

fn run( &self, context: &dyn Any, hsm: &Module, session: Option<&Session> ) -> Result<Box<dyn Annotate>>

Provided Methods§

source

fn leaf(&self) -> &dyn Dispatchwhere Self: Sized,

Trait Implementations§

source§

impl<'typetag> Serialize for dyn Dispatch + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn Dispatch + Send + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn Dispatch + Send + Sync + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<'typetag> Serialize for dyn Dispatch + Sync + 'typetag

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§