Trait dittolive_ditto::store::collections::pending_collections_operation::CollectionsEventHandler
source · [−]pub trait CollectionsEventHandler where
Self: Fn(CollectionsEvent) + Sync + Send + 'static, { }
Expand description
An alias for Fn(CollectionsEvent) + Sync + 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.