pub trait ClientStore:
Debug
+ Send
+ Sync
+ 'static {
Show 56 methods
// Required methods
fn save_session(
&self,
session: StoredSession,
) -> BoxFuture<'static, StoreResult<()>>;
fn load_session(
&self,
) -> BoxFuture<'static, StoreResult<Option<StoredSession>>>;
fn clear_session(&self) -> BoxFuture<'static, StoreResult<()>>;
fn clear_account_data(&self) -> BoxFuture<'static, StoreResult<()>>;
fn sync_state(&self) -> BoxFuture<'static, StoreResult<SyncState>>;
fn save_sync_state(
&self,
state: SyncState,
) -> BoxFuture<'static, StoreResult<()>>;
fn clear_sync_state(&self) -> BoxFuture<'static, StoreResult<()>>;
fn sync_bucket_state(
&self,
key: SyncBucketKey,
) -> BoxFuture<'static, StoreResult<SyncBucketState>>;
fn save_sync_bucket_state(
&self,
key: SyncBucketKey,
state: SyncBucketState,
) -> BoxFuture<'static, StoreResult<()>>;
fn save_sync_bucket_states(
&self,
states: Vec<(SyncBucketKey, SyncBucketState)>,
) -> BoxFuture<'static, StoreResult<()>>;
fn remove_sync_bucket_state(
&self,
key: SyncBucketKey,
) -> BoxFuture<'static, StoreResult<()>>;
fn save_pending_sync_batch(
&self,
batch: PendingSyncBatch,
) -> BoxFuture<'static, StoreResult<()>>;
fn pending_sync_batches(
&self,
) -> BoxFuture<'static, StoreResult<Vec<PendingSyncBatch>>>;
fn commit_pending_sync_batch(
&self,
key: SyncBucketKey,
state: SyncBucketState,
) -> BoxFuture<'static, StoreResult<()>>;
fn dialogs(
&self,
request: DialogsRequest,
) -> BoxFuture<'static, StoreResult<DialogsPage>>;
fn dialog(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<Option<DialogRecord>>>;
fn record_dialog(
&self,
dialog: DialogRecord,
) -> BoxFuture<'static, StoreResult<()>>;
fn remove_dialog(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<()>>;
fn deleted_chat_ids(&self) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>;
fn record_users(
&self,
users: Vec<UserRecord>,
) -> BoxFuture<'static, StoreResult<()>>;
fn record_space(
&self,
space: SpaceRecord,
) -> BoxFuture<'static, StoreResult<()>>;
fn space(
&self,
space_id: InlineId,
) -> BoxFuture<'static, StoreResult<Option<SpaceRecord>>>;
fn record_space_member(
&self,
member: SpaceMemberRecord,
) -> BoxFuture<'static, StoreResult<()>>;
fn record_space_members(
&self,
space_id: InlineId,
members: Vec<SpaceMemberRecord>,
) -> BoxFuture<'static, StoreResult<()>>;
fn remove_space_member(
&self,
space_id: InlineId,
user_id: InlineId,
) -> BoxFuture<'static, StoreResult<()>>;
fn space_members(
&self,
space_id: InlineId,
) -> BoxFuture<'static, StoreResult<Vec<SpaceMemberRecord>>>;
fn record_user_settings(
&self,
settings: UserSettingsRecord,
) -> BoxFuture<'static, StoreResult<()>>;
fn user_settings(
&self,
) -> BoxFuture<'static, StoreResult<Option<UserSettingsRecord>>>;
fn record_chat_participants(
&self,
chat_id: InlineId,
participants: Vec<ChatParticipantRecord>,
) -> BoxFuture<'static, StoreResult<()>>;
fn record_chat_participant(
&self,
chat_id: InlineId,
participant: ChatParticipantRecord,
) -> BoxFuture<'static, StoreResult<()>>;
fn remove_chat_participant(
&self,
chat_id: InlineId,
user_id: InlineId,
) -> BoxFuture<'static, StoreResult<()>>;
fn chat_participants(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<Vec<ChatParticipantRecord>>>;
fn chat_participants_complete(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<bool>>;
fn history(
&self,
request: HistoryRequest,
) -> BoxFuture<'static, StoreResult<HistoryPage>>;
fn record_message(
&self,
message: MessageRecord,
) -> BoxFuture<'static, StoreResult<()>>;
fn record_message_deleted(
&self,
chat_id: InlineId,
message_id: InlineId,
) -> BoxFuture<'static, StoreResult<()>>;
fn message_deleted(
&self,
chat_id: InlineId,
message_id: InlineId,
) -> BoxFuture<'static, StoreResult<bool>>;
fn deleted_message_ids(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>;
fn clear_chat_messages(
&self,
chat_id: InlineId,
before_date: Option<i64>,
) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>;
fn chat_ids_in_space(
&self,
space_id: InlineId,
) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>;
fn record_reaction(
&self,
reaction: StoredReaction,
) -> BoxFuture<'static, StoreResult<()>>;
fn remove_reaction(
&self,
reaction: StoredReaction,
) -> BoxFuture<'static, StoreResult<()>>;
fn replace_message_reactions(
&self,
chat_id: InlineId,
message_id: InlineId,
reactions: Vec<StoredReaction>,
) -> BoxFuture<'static, StoreResult<()>>;
fn reactions(
&self,
chat_id: InlineId,
message_id: InlineId,
) -> BoxFuture<'static, StoreResult<Vec<StoredReaction>>>;
fn reactions_for_chat(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<Vec<StoredReaction>>>;
fn reaction_snapshot_message_ids(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>;
fn record_read_state(
&self,
state: StoredReadState,
) -> BoxFuture<'static, StoreResult<()>>;
fn read_state(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<Option<StoredReadState>>>;
fn record_transaction(
&self,
transaction: StoredTransaction,
) -> BoxFuture<'static, StoreResult<()>>;
fn transaction(
&self,
transaction_id: TransactionId,
) -> BoxFuture<'static, StoreResult<Option<StoredTransaction>>>;
// Provided methods
fn discard_pending_sync_batch(
&self,
_key: SyncBucketKey,
) -> BoxFuture<'static, StoreResult<()>> { ... }
fn commit_pending_sync_batch_with_events(
&self,
key: SyncBucketKey,
state: SyncBucketState,
events: Vec<ClientEvent>,
) -> BoxFuture<'static, StoreResult<Vec<ClientEventDelivery>>> { ... }
fn append_client_events(
&self,
events: Vec<ClientEvent>,
) -> BoxFuture<'static, StoreResult<Vec<ClientEventDelivery>>> { ... }
fn pending_client_events(
&self,
) -> BoxFuture<'static, StoreResult<Vec<ClientEventDelivery>>> { ... }
fn acknowledge_client_event(
&self,
_delivery_id: u64,
) -> BoxFuture<'static, StoreResult<()>> { ... }
fn user(
&self,
_user_id: InlineId,
) -> BoxFuture<'static, StoreResult<Option<UserRecord>>> { ... }
}Expand description
Durable store boundary for client state.
Required Methods§
Sourcefn save_session(
&self,
session: StoredSession,
) -> BoxFuture<'static, StoreResult<()>>
fn save_session( &self, session: StoredSession, ) -> BoxFuture<'static, StoreResult<()>>
Saves the current session.
Sourcefn load_session(&self) -> BoxFuture<'static, StoreResult<Option<StoredSession>>>
fn load_session(&self) -> BoxFuture<'static, StoreResult<Option<StoredSession>>>
Loads the current session.
Sourcefn clear_session(&self) -> BoxFuture<'static, StoreResult<()>>
fn clear_session(&self) -> BoxFuture<'static, StoreResult<()>>
Clears the current session.
Sourcefn clear_account_data(&self) -> BoxFuture<'static, StoreResult<()>>
fn clear_account_data(&self) -> BoxFuture<'static, StoreResult<()>>
Clears all account-owned cache, sync, and transaction state while leaving the session row under separate lifecycle control.
Sourcefn sync_state(&self) -> BoxFuture<'static, StoreResult<SyncState>>
fn sync_state(&self) -> BoxFuture<'static, StoreResult<SyncState>>
Loads the global synchronization discovery cursor.
Sourcefn save_sync_state(
&self,
state: SyncState,
) -> BoxFuture<'static, StoreResult<()>>
fn save_sync_state( &self, state: SyncState, ) -> BoxFuture<'static, StoreResult<()>>
Saves the global synchronization discovery cursor.
Sourcefn clear_sync_state(&self) -> BoxFuture<'static, StoreResult<()>>
fn clear_sync_state(&self) -> BoxFuture<'static, StoreResult<()>>
Clears the global synchronization cursor and all bucket cursors.
Sourcefn sync_bucket_state(
&self,
key: SyncBucketKey,
) -> BoxFuture<'static, StoreResult<SyncBucketState>>
fn sync_bucket_state( &self, key: SyncBucketKey, ) -> BoxFuture<'static, StoreResult<SyncBucketState>>
Loads the cursor for one update bucket.
Sourcefn save_sync_bucket_state(
&self,
key: SyncBucketKey,
state: SyncBucketState,
) -> BoxFuture<'static, StoreResult<()>>
fn save_sync_bucket_state( &self, key: SyncBucketKey, state: SyncBucketState, ) -> BoxFuture<'static, StoreResult<()>>
Saves the cursor for one update bucket.
Sourcefn save_sync_bucket_states(
&self,
states: Vec<(SyncBucketKey, SyncBucketState)>,
) -> BoxFuture<'static, StoreResult<()>>
fn save_sync_bucket_states( &self, states: Vec<(SyncBucketKey, SyncBucketState)>, ) -> BoxFuture<'static, StoreResult<()>>
Saves multiple bucket cursors atomically when supported by the store.
Sourcefn remove_sync_bucket_state(
&self,
key: SyncBucketKey,
) -> BoxFuture<'static, StoreResult<()>>
fn remove_sync_bucket_state( &self, key: SyncBucketKey, ) -> BoxFuture<'static, StoreResult<()>>
Removes the cursor for one update bucket.
Sourcefn save_pending_sync_batch(
&self,
batch: PendingSyncBatch,
) -> BoxFuture<'static, StoreResult<()>>
fn save_pending_sync_batch( &self, batch: PendingSyncBatch, ) -> BoxFuture<'static, StoreResult<()>>
Saves or replaces the write-ahead batch for one bucket before reducer state is changed.
Sourcefn pending_sync_batches(
&self,
) -> BoxFuture<'static, StoreResult<Vec<PendingSyncBatch>>>
fn pending_sync_batches( &self, ) -> BoxFuture<'static, StoreResult<Vec<PendingSyncBatch>>>
Lists write-ahead batches that were not fully committed.
Sourcefn commit_pending_sync_batch(
&self,
key: SyncBucketKey,
state: SyncBucketState,
) -> BoxFuture<'static, StoreResult<()>>
fn commit_pending_sync_batch( &self, key: SyncBucketKey, state: SyncBucketState, ) -> BoxFuture<'static, StoreResult<()>>
Atomically advances a bucket cursor and removes its write-ahead batch.
Sourcefn dialogs(
&self,
request: DialogsRequest,
) -> BoxFuture<'static, StoreResult<DialogsPage>>
fn dialogs( &self, request: DialogsRequest, ) -> BoxFuture<'static, StoreResult<DialogsPage>>
Lists stored dialogs.
Sourcefn dialog(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<Option<DialogRecord>>>
fn dialog( &self, chat_id: InlineId, ) -> BoxFuture<'static, StoreResult<Option<DialogRecord>>>
Loads one stored dialog by chat ID.
Sourcefn record_dialog(
&self,
dialog: DialogRecord,
) -> BoxFuture<'static, StoreResult<()>>
fn record_dialog( &self, dialog: DialogRecord, ) -> BoxFuture<'static, StoreResult<()>>
Records a dialog in local state.
Sourcefn remove_dialog(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<()>>
fn remove_dialog( &self, chat_id: InlineId, ) -> BoxFuture<'static, StoreResult<()>>
Removes a dialog and its client-owned per-chat state.
Sourcefn deleted_chat_ids(&self) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>
fn deleted_chat_ids(&self) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>
Lists durable chat deletion tombstones.
Sourcefn record_users(
&self,
users: Vec<UserRecord>,
) -> BoxFuture<'static, StoreResult<()>>
fn record_users( &self, users: Vec<UserRecord>, ) -> BoxFuture<'static, StoreResult<()>>
Records user summaries in local state.
Sourcefn record_space(
&self,
space: SpaceRecord,
) -> BoxFuture<'static, StoreResult<()>>
fn record_space( &self, space: SpaceRecord, ) -> BoxFuture<'static, StoreResult<()>>
Inserts or replaces a durable space summary.
Sourcefn space(
&self,
space_id: InlineId,
) -> BoxFuture<'static, StoreResult<Option<SpaceRecord>>>
fn space( &self, space_id: InlineId, ) -> BoxFuture<'static, StoreResult<Option<SpaceRecord>>>
Loads a durable space summary.
Sourcefn record_space_member(
&self,
member: SpaceMemberRecord,
) -> BoxFuture<'static, StoreResult<()>>
fn record_space_member( &self, member: SpaceMemberRecord, ) -> BoxFuture<'static, StoreResult<()>>
Inserts or replaces one durable space member.
Sourcefn record_space_members(
&self,
space_id: InlineId,
members: Vec<SpaceMemberRecord>,
) -> BoxFuture<'static, StoreResult<()>>
fn record_space_members( &self, space_id: InlineId, members: Vec<SpaceMemberRecord>, ) -> BoxFuture<'static, StoreResult<()>>
Replaces the complete durable membership snapshot for one space.
Sourcefn remove_space_member(
&self,
space_id: InlineId,
user_id: InlineId,
) -> BoxFuture<'static, StoreResult<()>>
fn remove_space_member( &self, space_id: InlineId, user_id: InlineId, ) -> BoxFuture<'static, StoreResult<()>>
Removes one durable space member.
Sourcefn space_members(
&self,
space_id: InlineId,
) -> BoxFuture<'static, StoreResult<Vec<SpaceMemberRecord>>>
fn space_members( &self, space_id: InlineId, ) -> BoxFuture<'static, StoreResult<Vec<SpaceMemberRecord>>>
Lists durable members for a space.
Sourcefn record_user_settings(
&self,
settings: UserSettingsRecord,
) -> BoxFuture<'static, StoreResult<()>>
fn record_user_settings( &self, settings: UserSettingsRecord, ) -> BoxFuture<'static, StoreResult<()>>
Replaces durable global user settings.
Sourcefn user_settings(
&self,
) -> BoxFuture<'static, StoreResult<Option<UserSettingsRecord>>>
fn user_settings( &self, ) -> BoxFuture<'static, StoreResult<Option<UserSettingsRecord>>>
Loads durable global user settings.
Sourcefn record_chat_participants(
&self,
chat_id: InlineId,
participants: Vec<ChatParticipantRecord>,
) -> BoxFuture<'static, StoreResult<()>>
fn record_chat_participants( &self, chat_id: InlineId, participants: Vec<ChatParticipantRecord>, ) -> BoxFuture<'static, StoreResult<()>>
Replaces the durable participant snapshot for a chat.
Sourcefn record_chat_participant(
&self,
chat_id: InlineId,
participant: ChatParticipantRecord,
) -> BoxFuture<'static, StoreResult<()>>
fn record_chat_participant( &self, chat_id: InlineId, participant: ChatParticipantRecord, ) -> BoxFuture<'static, StoreResult<()>>
Inserts or replaces one durable chat participant.
Sourcefn remove_chat_participant(
&self,
chat_id: InlineId,
user_id: InlineId,
) -> BoxFuture<'static, StoreResult<()>>
fn remove_chat_participant( &self, chat_id: InlineId, user_id: InlineId, ) -> BoxFuture<'static, StoreResult<()>>
Removes one durable chat participant.
Sourcefn chat_participants(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<Vec<ChatParticipantRecord>>>
fn chat_participants( &self, chat_id: InlineId, ) -> BoxFuture<'static, StoreResult<Vec<ChatParticipantRecord>>>
Loads the durable participant snapshot for a chat.
Sourcefn chat_participants_complete(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<bool>>
fn chat_participants_complete( &self, chat_id: InlineId, ) -> BoxFuture<'static, StoreResult<bool>>
Returns whether the participant list was observed as a complete snapshot.
Sourcefn history(
&self,
request: HistoryRequest,
) -> BoxFuture<'static, StoreResult<HistoryPage>>
fn history( &self, request: HistoryRequest, ) -> BoxFuture<'static, StoreResult<HistoryPage>>
Fetches stored history.
Sourcefn record_message(
&self,
message: MessageRecord,
) -> BoxFuture<'static, StoreResult<()>>
fn record_message( &self, message: MessageRecord, ) -> BoxFuture<'static, StoreResult<()>>
Records a message in stored history.
Sourcefn record_message_deleted(
&self,
chat_id: InlineId,
message_id: InlineId,
) -> BoxFuture<'static, StoreResult<()>>
fn record_message_deleted( &self, chat_id: InlineId, message_id: InlineId, ) -> BoxFuture<'static, StoreResult<()>>
Records a durable message tombstone and removes the live message row.
Sourcefn message_deleted(
&self,
chat_id: InlineId,
message_id: InlineId,
) -> BoxFuture<'static, StoreResult<bool>>
fn message_deleted( &self, chat_id: InlineId, message_id: InlineId, ) -> BoxFuture<'static, StoreResult<bool>>
Returns whether a message has a durable deletion tombstone.
Sourcefn deleted_message_ids(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>
fn deleted_message_ids( &self, chat_id: InlineId, ) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>
Lists durable message deletion tombstones for one chat.
Sourcefn clear_chat_messages(
&self,
chat_id: InlineId,
before_date: Option<i64>,
) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>
fn clear_chat_messages( &self, chat_id: InlineId, before_date: Option<i64>, ) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>
Clears stored messages for one chat and returns the removed IDs.
Sourcefn chat_ids_in_space(
&self,
space_id: InlineId,
) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>
fn chat_ids_in_space( &self, space_id: InlineId, ) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>
Lists chat IDs currently associated with a space.
Sourcefn record_reaction(
&self,
reaction: StoredReaction,
) -> BoxFuture<'static, StoreResult<()>>
fn record_reaction( &self, reaction: StoredReaction, ) -> BoxFuture<'static, StoreResult<()>>
Inserts or replaces one current reaction.
Sourcefn remove_reaction(
&self,
reaction: StoredReaction,
) -> BoxFuture<'static, StoreResult<()>>
fn remove_reaction( &self, reaction: StoredReaction, ) -> BoxFuture<'static, StoreResult<()>>
Removes one current reaction.
Sourcefn replace_message_reactions(
&self,
chat_id: InlineId,
message_id: InlineId,
reactions: Vec<StoredReaction>,
) -> BoxFuture<'static, StoreResult<()>>
fn replace_message_reactions( &self, chat_id: InlineId, message_id: InlineId, reactions: Vec<StoredReaction>, ) -> BoxFuture<'static, StoreResult<()>>
Replaces the complete reaction set for one message.
Sourcefn reactions(
&self,
chat_id: InlineId,
message_id: InlineId,
) -> BoxFuture<'static, StoreResult<Vec<StoredReaction>>>
fn reactions( &self, chat_id: InlineId, message_id: InlineId, ) -> BoxFuture<'static, StoreResult<Vec<StoredReaction>>>
Lists current reactions for a message.
Sourcefn reactions_for_chat(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<Vec<StoredReaction>>>
fn reactions_for_chat( &self, chat_id: InlineId, ) -> BoxFuture<'static, StoreResult<Vec<StoredReaction>>>
Lists the current reaction set for all known messages in one chat.
Sourcefn reaction_snapshot_message_ids(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>
fn reaction_snapshot_message_ids( &self, chat_id: InlineId, ) -> BoxFuture<'static, StoreResult<Vec<InlineId>>>
Lists message IDs whose reaction set is known to be complete.
Sourcefn record_read_state(
&self,
state: StoredReadState,
) -> BoxFuture<'static, StoreResult<()>>
fn record_read_state( &self, state: StoredReadState, ) -> BoxFuture<'static, StoreResult<()>>
Inserts or replaces read state for a chat.
Sourcefn read_state(
&self,
chat_id: InlineId,
) -> BoxFuture<'static, StoreResult<Option<StoredReadState>>>
fn read_state( &self, chat_id: InlineId, ) -> BoxFuture<'static, StoreResult<Option<StoredReadState>>>
Loads read state for a chat.
Sourcefn record_transaction(
&self,
transaction: StoredTransaction,
) -> BoxFuture<'static, StoreResult<()>>
fn record_transaction( &self, transaction: StoredTransaction, ) -> BoxFuture<'static, StoreResult<()>>
Records a transaction state change.
Sourcefn transaction(
&self,
transaction_id: TransactionId,
) -> BoxFuture<'static, StoreResult<Option<StoredTransaction>>>
fn transaction( &self, transaction_id: TransactionId, ) -> BoxFuture<'static, StoreResult<Option<StoredTransaction>>>
Finds a transaction by transaction ID.
Provided Methods§
Sourcefn discard_pending_sync_batch(
&self,
_key: SyncBucketKey,
) -> BoxFuture<'static, StoreResult<()>>
fn discard_pending_sync_batch( &self, _key: SyncBucketKey, ) -> BoxFuture<'static, StoreResult<()>>
Removes an invalid write-ahead batch without advancing its bucket cursor. Stores should implement this so a journal written by an older or incompatible client cannot permanently poison startup recovery.
Sourcefn commit_pending_sync_batch_with_events(
&self,
key: SyncBucketKey,
state: SyncBucketState,
events: Vec<ClientEvent>,
) -> BoxFuture<'static, StoreResult<Vec<ClientEventDelivery>>>
fn commit_pending_sync_batch_with_events( &self, key: SyncBucketKey, state: SyncBucketState, events: Vec<ClientEvent>, ) -> BoxFuture<'static, StoreResult<Vec<ClientEventDelivery>>>
Atomically advances a bucket cursor, records resulting lossless events, and removes its write-ahead batch. Custom stores must override this to use durable lossless delivery; the default fails before cursor commit.
Sourcefn append_client_events(
&self,
events: Vec<ClientEvent>,
) -> BoxFuture<'static, StoreResult<Vec<ClientEventDelivery>>>
fn append_client_events( &self, events: Vec<ClientEvent>, ) -> BoxFuture<'static, StoreResult<Vec<ClientEventDelivery>>>
Appends committed events to the durable lossless outbox while retaining best-effort events as unsequenced deliveries.
Sourcefn pending_client_events(
&self,
) -> BoxFuture<'static, StoreResult<Vec<ClientEventDelivery>>>
fn pending_client_events( &self, ) -> BoxFuture<'static, StoreResult<Vec<ClientEventDelivery>>>
Lists durable lossless events that have not yet been acknowledged by the host consumer.
Sourcefn acknowledge_client_event(
&self,
_delivery_id: u64,
) -> BoxFuture<'static, StoreResult<()>>
fn acknowledge_client_event( &self, _delivery_id: u64, ) -> BoxFuture<'static, StoreResult<()>>
Acknowledges one durable lossless event after the host has persisted or otherwise committed its handling.
Sourcefn user(
&self,
_user_id: InlineId,
) -> BoxFuture<'static, StoreResult<Option<UserRecord>>>
fn user( &self, _user_id: InlineId, ) -> BoxFuture<'static, StoreResult<Option<UserRecord>>>
Loads one stored user summary.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".