[][src]Struct splinter::node_registry::unified::UnifiedNodeRegistry

pub struct UnifiedNodeRegistry { /* fields omitted */ }

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]

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]

impl NodeRegistryReader for UnifiedNodeRegistry[src]

fn count_nodes(
    &self,
    predicates: &[MetadataPredicate]
) -> Result<u32, NodeRegistryError>
[src]

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.

impl NodeRegistryWriter for UnifiedNodeRegistry[src]

impl RwNodeRegistry for UnifiedNodeRegistry[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> DefaultFeatures<'a> for T where
    T: 'a + Clone + Send + Sync

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T

impl<'a, T> NonSyncFeatures<'a> for T where
    T: 'a + Clone

impl<T> SafeBorrow<T> for T where
    T: ?Sized

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,