[][src]Trait exonum_rust_runtime::Interface

pub trait Interface<'a> {
    const INTERFACE_NAME: &'static str;

    fn dispatch(
        &self,
        context: ExecutionContext<'a>,
        method: MethodId,
        payload: &[u8]
    ) -> Result<(), ExecutionError>; }

A service interface specification.

Associated Constants

const INTERFACE_NAME: &'static str

Fully qualified name of this interface.

Loading content...

Required methods

fn dispatch(
    &self,
    context: ExecutionContext<'a>,
    method: MethodId,
    payload: &[u8]
) -> Result<(), ExecutionError>

Invokes the specified method handler of the service instance.

Loading content...

Implementors

Loading content...