Trait splinter::registry::RwRegistry
source · [−]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
sourceimpl Clone for Box<dyn RwRegistry>
impl Clone for Box<dyn RwRegistry>
sourcefn clone(&self) -> Box<dyn RwRegistry>
fn clone(&self) -> Box<dyn RwRegistry>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl RestResourceProvider for dyn RwRegistry
impl RestResourceProvider for dyn RwRegistry
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