Skip to main content

ReactiveCollectionIntegration

Trait ReactiveCollectionIntegration 

Source
pub trait ReactiveCollectionIntegration {
    // Required methods
    fn on_content_materialized(
        &self,
        operation: &Operation,
    ) -> Result<(), String>;
    fn affects_collection(&self, namespace: &str) -> bool;
}
Expand description

Reactive collection integration This trait allows acquired content to participate in reactive collections

Required Methods§

Source

fn on_content_materialized(&self, operation: &Operation) -> Result<(), String>

Notify the collection that new content was acquired and materialized

Source

fn affects_collection(&self, namespace: &str) -> bool

Check if this collection would be affected by materialization

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§