[][src]Trait artemis_core::Application

pub trait Application {
    fn handle(payload: Vec<u8>) -> DispatchResult;
}

A trait for handling message payloads.

This trait should be implemented by runtime modules that wish to handle message payloads.

Required methods

fn handle(payload: Vec<u8>) -> DispatchResult

Handle a message payload

Loading content...

Implementors

Loading content...