pub trait Dispatcher:
Any
+ Send
+ Sync {
// Required method
fn dispatch(
&self,
actor: &str,
op: &str,
msg: &[u8],
) -> Result<Vec<u8>, Box<dyn Error + Sync + Send>>;
}👎Deprecated: The capability provider functionality from this crate has been moved to wasmcloud-provider-core
Expand description
The dispatcher is used by a native capability provider to send commands to an actor module, 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>>
👎Deprecated: The capability provider functionality from this crate has been moved to wasmcloud-provider-core