[][src]Trait exonum_rust_runtime::ServiceDispatcher

pub trait ServiceDispatcher: Send {
    fn call(
        &self,
        context: ExecutionContext,
        method: MethodId,
        payload: &[u8]
    ) -> Result<(), ExecutionError>; }

Describes how the service instance should dispatch specific method calls with consideration of the interface where the method belongs.

Usually, ServiceDispatcher can be derived using the ServiceDispatcher macro.

Required methods

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

Dispatches the interface method call within the specified context.

Loading content...

Implementors

Loading content...