pub struct StoreInfo {
pub store_id: StoreId,
pub cloned_from: Option<StoreId>,
pub store_source: StoreSource,
pub store_version: Option<CrateVersion>,
}Expand description
Information about a recording or blueprint.
Fields§
§store_id: StoreIdShould be unique for each recording.
The store id contains both the application id (or dataset id) and the recording id (or segment id).
cloned_from: Option<StoreId>If this store is the result of a clone, which store was it cloned from?
A cloned store always gets a new unique ID.
We currently only clone stores for blueprints: when we receive a default blueprints on the wire (e.g. from a recording), we clone it and make the clone the active blueprint. This means all active blueprints are clones.
store_source: StoreSource§store_version: Option<CrateVersion>The Rerun version used to encoded the RRD data.
Implementations§
Source§impl StoreInfo
impl StoreInfo
Sourcepub fn new(store_id: StoreId, store_source: StoreSource) -> Self
pub fn new(store_id: StoreId, store_source: StoreSource) -> Self
Creates a new store info using the current crate version.
Sourcepub fn new_unversioned(store_id: StoreId, store_source: StoreSource) -> Self
pub fn new_unversioned(store_id: StoreId, store_source: StoreSource) -> Self
Creates a new store info without any versioning information.
Sourcepub fn testing_with_recording_id(recording_id: impl Into<RecordingId>) -> Self
pub fn testing_with_recording_id(recording_id: impl Into<RecordingId>) -> Self
Creates a new store info for testing purposes with a fixed store id.
Most of the time we don’t want to fix the store id since it is used as a key in static store subscribers, which might not get teared down after every test. Use this only if the recording id may show up somewhere in the test output.
Source§impl StoreInfo
impl StoreInfo
Sourcepub fn is_app_default_blueprint(&self) -> bool
pub fn is_app_default_blueprint(&self) -> bool
Whether this StoreInfo is the default used when a user is not explicitly
creating their own blueprint.
pub fn application_id(&self) -> &ApplicationId
pub fn recording_id(&self) -> &RecordingId
Trait Implementations§
Source§impl SizeBytes for StoreInfo
impl SizeBytes for StoreInfo
Source§fn heap_size_bytes(&self) -> u64
fn heap_size_bytes(&self) -> u64
self uses on the heap. Read moreSource§fn total_size_bytes(&self) -> u64
fn total_size_bytes(&self) -> u64
self in bytes, accounting for both stack and heap space.Source§fn stack_size_bytes(&self) -> u64
fn stack_size_bytes(&self) -> u64
self on the stack, in bytes. Read moreimpl Eq for StoreInfo
impl StructuralPartialEq for StoreInfo
Auto Trait Implementations§
impl Freeze for StoreInfo
impl RefUnwindSafe for StoreInfo
impl Send for StoreInfo
impl Sync for StoreInfo
impl Unpin for StoreInfo
impl UnsafeUnpin for StoreInfo
impl UnwindSafe for StoreInfo
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>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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