Trait dittolive_ditto::store::collections::pending_collections_operation::CollectionsEventHandler[][src]

pub trait CollectionsEventHandler where
    Self: FnMut(CollectionsEvent) + Send + 'static, 
{ }
Expand description

An alias for FnMut(CollectionsEvent) + Send + 'static. A closure which is called on each event relating to changes in the known about collections.

Ditto may call this handler in parallel such as when a second invocation happens before the first invocation has completed. This typically occurs when the closure makes slow, external calls.