[][src]Trait splinter::node_registry::NodeRegistryWriter

pub trait NodeRegistryWriter: Send + Sync {
    fn insert_node(&self, node: Node) -> Result<(), NodeRegistryError>;
fn delete_node(&self, identity: &str) -> Result<(), NodeRegistryError>; }

Provides Node Registry write capabilities.

Required methods

fn insert_node(&self, node: Node) -> Result<(), NodeRegistryError>

Adds a new node to the registry, or replaces an existing node with the same identity.

Arguments

  • node - The node to be added to or updated in the registry.

fn delete_node(&self, identity: &str) -> Result<(), NodeRegistryError>

Deletes a node with the given identity.

Arguments

  • identity - The Splinter identity of the node.
Loading content...

Implementations on Foreign Types

impl<NW: ?Sized> NodeRegistryWriter for Box<NW> where
    NW: NodeRegistryWriter
[src]

Loading content...

Implementors

impl NodeRegistryWriter for NoOpNodeRegistry[src]

impl NodeRegistryWriter for UnifiedNodeRegistry[src]

impl NodeRegistryWriter for YamlNodeRegistry[src]

Loading content...