pub trait ApplicationIdInjector {
// Required methods
fn store_info_received(&mut self, store_info: &StoreInfo);
fn recover_store_id(
&self,
store_id_err: StoreIdMissingApplicationIdError,
) -> Option<StoreId>;
}Expand description
Helper trait for injecting application ids to legacy StoreId protobuf messages which miss it.
Before 0.25, the StoreId protobuf didn’t contain an application id, which was only provided by
StoreInfo. As a result, messages such as ArrowMsg didn’t contain an application id. Only
SetStoreInfo did. This helper trait expose an interface to cache the application id from
SetStoreInfo and inject it into later messages.
Note: this is a trait to allow disabling this mechanism and injecting dummy application ids
instead, see DummyApplicationIdInjector, which is needed on redap side.
Required Methods§
Sourcefn store_info_received(&mut self, store_info: &StoreInfo)
fn store_info_received(&mut self, store_info: &StoreInfo)
Populate the cache based on a re_log_types::SetStoreInfo payload.
Sourcefn recover_store_id(
&self,
store_id_err: StoreIdMissingApplicationIdError,
) -> Option<StoreId>
fn recover_store_id( &self, store_id_err: StoreIdMissingApplicationIdError, ) -> Option<StoreId>
Try to recover a StoreId from a StoreIdMissingApplicationIdError.