[−][src]Struct splinter::node_registry::unified::UnifiedNodeRegistry
Unifies a set of read-only node registries with a local, read-write node registry.
Nodes read from the unified registry utilize the read-only sources to fetch node definitions and any local changes as a replacement.
Methods
impl UnifiedNodeRegistry
[src]
pub fn new(
local_source: Box<dyn RwNodeRegistry>,
readable_sources: Vec<Box<dyn NodeRegistryReader>>
) -> Self
[src]
local_source: Box<dyn RwNodeRegistry>,
readable_sources: Vec<Box<dyn NodeRegistryReader>>
) -> Self
Constructs a new UnifiedNodeRegistry with a local, read-write node registry and a arbitrary number of read-only node registries.
Trait Implementations
impl Clone for UnifiedNodeRegistry
[src]
fn clone(&self) -> UnifiedNodeRegistry
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl NodeRegistryReader for UnifiedNodeRegistry
[src]
fn list_nodes<'a, 'b: 'a>(
&'b self,
predicates: &'a [MetadataPredicate]
) -> Result<Box<dyn Iterator<Item = Node> + Send + 'a>, NodeRegistryError>
[src]
&'b self,
predicates: &'a [MetadataPredicate]
) -> Result<Box<dyn Iterator<Item = Node> + Send + 'a>, NodeRegistryError>
fn count_nodes(
&self,
predicates: &[MetadataPredicate]
) -> Result<u32, NodeRegistryError>
[src]
&self,
predicates: &[MetadataPredicate]
) -> Result<u32, NodeRegistryError>
This implementation of count_nodes does not take into account the replaced nodes in the node registry, in order to keep the overall operation more efficient.
fn fetch_node(&self, identity: &str) -> Result<Node, NodeRegistryError>
[src]
fn has_node(&self, identity: &str) -> Result<bool, NodeRegistryError>
[src]
impl NodeRegistryWriter for UnifiedNodeRegistry
[src]
fn insert_node(&self, node: Node) -> Result<(), NodeRegistryError>
[src]
fn delete_node(&self, identity: &str) -> Result<(), NodeRegistryError>
[src]
impl RwNodeRegistry for UnifiedNodeRegistry
[src]
fn clone_box(&self) -> Box<dyn RwNodeRegistry>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for UnifiedNodeRegistry
impl Send for UnifiedNodeRegistry
impl Sync for UnifiedNodeRegistry
impl Unpin for UnifiedNodeRegistry
impl !UnwindSafe for UnifiedNodeRegistry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Clone + Send + Sync,
T: 'a + Clone + Send + Sync,
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
&'a Self: AsExpression<T>,
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
T: 'a + Clone,
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,