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.
Object Safety§
This trait is not object safe.