Skip to main content

CacheChangeSetSource

Trait CacheChangeSetSource 

Source
pub trait CacheChangeSetSource: 'static {
    type Item: Clone + 'static;
    type Key: Eq + Hash + Clone + 'static;

    // Required method
    fn source_change_sets(
        &self,
    ) -> Rc<dyn IObservable<ChangeSet<Self::Item, Self::Key>>>;
}
Expand description

A source of the change sets of a cache: a sequence of change sets, or a cache whose Connect() is its sequence (the items of upstream’s collections of sources).

Required Associated Types§

Source

type Item: Clone + 'static

The type of the items.

Source

type Key: Eq + Hash + Clone + 'static

The type of the keys.

Required Methods§

Source

fn source_change_sets( &self, ) -> Rc<dyn IObservable<ChangeSet<Self::Item, Self::Key>>>

The change sets of the source: the sequence itself, or Connect() of a cache.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: Clone + 'static, K: Eq + Hash + Clone + 'static> CacheChangeSetSource for Rc<dyn IObservable<ChangeSet<T, K>>>

Source§

impl<T: Clone + 'static, K: Eq + Hash + Clone + 'static> CacheChangeSetSource for Rc<dyn IObservableCache<T, K>>

Source§

impl<T: Clone + 'static, K: Eq + Hash + Clone + 'static> CacheChangeSetSource for Rc<dyn ISourceCache<T, K>>

Implementors§

Source§

impl<T: Clone + 'static, K: Eq + Hash + Clone + 'static> CacheChangeSetSource for ObservableCache<T, K>

Source§

type Item = T

Source§

type Key = K

Source§

impl<T: Clone + 'static, K: Eq + Hash + Clone + 'static> CacheChangeSetSource for SourceCache<T, K>

Source§

type Item = T

Source§

type Key = K