[][src]Trait wascc_codec::capabilities::Dispatcher

pub trait Dispatcher: Any + Send + Sync {
    fn dispatch(&self, op: &str, msg: &[u8]) -> Result<Vec<u8>, Box<dyn Error>>;
}

The dispatcher is used by a native capability provider to send commands to an actor module, expecting a result containing a binary blob in return

Required methods

fn dispatch(&self, op: &str, msg: &[u8]) -> Result<Vec<u8>, Box<dyn Error>>

Loading content...

Implementors

impl Dispatcher for NullDispatcher[src]

Loading content...