[][src]Trait exonum_node::NodePlugin

pub trait NodePlugin: Send {
    fn after_commit(&self, _snapshot: &dyn Snapshot) { ... }
fn wire_api(&self, _context: PluginApiContext) -> Vec<(String, ApiBuilder)> { ... } }

Plugin for Exonum node.

Provided methods

fn after_commit(&self, _snapshot: &dyn Snapshot)

Notifies the plugin that the node has committed a block.

The default implementation does nothing.

fn wire_api(&self, _context: PluginApiContext) -> Vec<(String, ApiBuilder)>

Allows the plugin to extend HTTP API of the node.

The default implementation returns an empty Vec.

Loading content...

Trait Implementations

impl Debug for dyn NodePlugin[src]

Implementors

Loading content...