[][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

Implementors

impl<T: Trait> Application for Module<T>

impl<T: Trait> Application for Module<T>