Trait splinter::registry::RwRegistry [−][src]
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
fn clone_box(&self) -> Box<dyn RwRegistry>
fn clone_box(&self) -> Box<dyn RwRegistry>
Clone implementation for RwRegistry
. The implementation of the Clone
trait for
Box<RwRegistry>
calls this method.
fn clone_box_as_reader(&self) -> Box<dyn RegistryReader>
fn clone_box_as_reader(&self) -> Box<dyn RegistryReader>
Clone the RwRegistry
as a Box<dyn RegistryReader>
.
fn clone_box_as_writer(&self) -> Box<dyn RegistryWriter>
fn clone_box_as_writer(&self) -> Box<dyn RegistryWriter>
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 registryPOST /registry/nodes
- Add a node to the registryGET /registry/nodes/{identity}
- Fetch a specific node in the registryPUT /registry/nodes/{identity}
- Replace a node in the registryDELETE /registry/nodes/{identity}
- Delete a node from the registry
These endpoints are only available if the following REST API backend feature is enabled:
rest-api-actix