pub trait PerStoreChunkSubscriber:
Send
+ Sync
+ Default {
// Required methods
fn name() -> String;
fn on_events<'a>(
&mut self,
events: impl Iterator<Item = &'a ChunkStoreEvent>,
);
}
Expand description
A ChunkStoreSubscriber
that is instantiated for each unique StoreId
.
Required Methods§
Sourcefn on_events<'a>(&mut self, events: impl Iterator<Item = &'a ChunkStoreEvent>)
fn on_events<'a>(&mut self, events: impl Iterator<Item = &'a ChunkStoreEvent>)
Get notified of changes happening in a ChunkStore
, see ChunkStoreSubscriber::on_events
.
Unlike ChunkStoreSubscriber::on_events
, all items are guaranteed to have the same StoreId
which does not change per invocation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.