pub trait RwRegistry: RegistryWriter + RegistryReader {
    fn clone_box(&self) -> Box<dyn RwRegistry>;
fn clone_box_as_reader(&self) -> Box<dyn RegistryReader>;
fn clone_box_as_writer(&self) -> Box<dyn RegistryWriter>; }
Expand description

Provides a marker trait for a clonable, readable and writable registry.

Required methods

Clone implementation for RwRegistry. The implementation of the Clone trait for Box<RwRegistry> calls this method.

Clone the RwRegistry as a Box<dyn RegistryReader>.

Clone the RwRegistry as a Box<dyn RegistryWriter>.

Trait Implementations

The RwRegistry trait service provides the following endpoints as REST API resources:

  • GET /registry/nodes - List the nodes in the registry
  • POST /registry/nodes - Add a node to the registry
  • GET /registry/nodes/{identity} - Fetch a specific node in the registry
  • PUT /registry/nodes/{identity} - Replace a node in the registry
  • DELETE /registry/nodes/{identity} - Delete a node from the registry

Implementors