Struct re_chunk_store::ChunkStoreEvent
source · pub struct ChunkStoreEvent {
pub store_id: StoreId,
pub store_generation: ChunkStoreGeneration,
pub event_id: u64,
pub diff: ChunkStoreDiff,
}
Expand description
The atomic unit of change in the Rerun ChunkStore
.
A ChunkStoreEvent
describes the changes caused by the addition or deletion of a
[Chunk
] in the store.
Methods that mutate the ChunkStore
, such as ChunkStore::insert_chunk
and ChunkStore::gc
,
return ChunkStoreEvent
s that describe the changes.
You can also register your own ChunkStoreSubscriber
in order to be notified of changes as soon as they
happen.
Refer to field-level documentation for more details and check out ChunkStoreDiff
for a precise
definition of what an event involves.
Fields§
§store_id: StoreId
Which ChunkStore
sent this event?
store_generation: ChunkStoreGeneration
What was the store’s generation when it sent that event?
event_id: u64
Monotonically increasing ID of the event.
This is on a per-store basis.
When handling a ChunkStoreEvent
, if this is the first time you process this [StoreId
] and
the associated event_id
is not 1
, it means you registered late and missed some updates.
diff: ChunkStoreDiff
What actually changed?
Refer to ChunkStoreDiff
for more information.
Methods from Deref<Target = ChunkStoreDiff>§
Trait Implementations§
source§impl Clone for ChunkStoreEvent
impl Clone for ChunkStoreEvent
source§fn clone(&self) -> ChunkStoreEvent
fn clone(&self) -> ChunkStoreEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ChunkStoreEvent
impl Debug for ChunkStoreEvent
source§impl Deref for ChunkStoreEvent
impl Deref for ChunkStoreEvent
source§impl PartialEq for ChunkStoreEvent
impl PartialEq for ChunkStoreEvent
source§fn eq(&self, other: &ChunkStoreEvent) -> bool
fn eq(&self, other: &ChunkStoreEvent) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for ChunkStoreEvent
impl StructuralPartialEq for ChunkStoreEvent
Auto Trait Implementations§
impl Freeze for ChunkStoreEvent
impl !RefUnwindSafe for ChunkStoreEvent
impl Send for ChunkStoreEvent
impl Sync for ChunkStoreEvent
impl Unpin for ChunkStoreEvent
impl !UnwindSafe for ChunkStoreEvent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more