Skip to main content

Announcer

Trait Announcer 

Source
pub trait Announcer {
    // Required method
    fn invoke(&self, capability: &str, payload: Value) -> Result<Value, String>;
}
Expand description

The app’s door to the node’s capability bus, for core.replica.announce. Implement it with the SDK’s invoke_capability.

Required Methods§

Source

fn invoke(&self, capability: &str, payload: Value) -> Result<Value, String>

Invokes capability with payload and returns the reply’s payload, or the error text when the capability failed or does not exist.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§