Trait wasmcloud_provider_core::capabilities::Dispatcher[][src]

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

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

Required methods

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

Loading content...

Implementors

impl Dispatcher for NullDispatcher[src]

Loading content...