re_viewer::external::re_chunk_store

Trait PerStoreChunkSubscriber

Source
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§

Source

fn name() -> String

Arbitrary name for the subscriber.

Does not need to be unique.

Source

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.

Implementors§