pub struct InMemoryLiveReplayStore { /* private fields */ }Implementations§
Source§impl InMemoryLiveReplayStore
impl InMemoryLiveReplayStore
pub fn new(config: InMemoryLiveReplayStoreConfig) -> Self
pub fn with_bounds(max_events_per_session: usize, max_age: Duration) -> Self
Trait Implementations§
Source§impl Debug for InMemoryLiveReplayStore
impl Debug for InMemoryLiveReplayStore
Source§impl Default for InMemoryLiveReplayStore
impl Default for InMemoryLiveReplayStore
Source§impl LiveReplayStore for InMemoryLiveReplayStore
impl LiveReplayStore for InMemoryLiveReplayStore
Source§fn append(
&self,
session_id: &str,
revision: SessionRevision,
payload: SessionObservationEventPayload,
) -> Result<SessionObservationEvent, LiveReplayStoreError>
fn append( &self, session_id: &str, revision: SessionRevision, payload: SessionObservationEventPayload, ) -> Result<SessionObservationEvent, LiveReplayStoreError>
Append one observation event and return its assigned cursor. Read more
Source§fn replay_after_cursor(
&self,
cursor: &SessionCursor,
) -> Result<LiveReplayResult, LiveReplayStoreError>
fn replay_after_cursor( &self, cursor: &SessionCursor, ) -> Result<LiveReplayResult, LiveReplayStoreError>
Return buffered events after
cursor, or report a recoverable gap. Read moreSource§fn subscribe_after_cursor(
&self,
cursor: &SessionCursor,
) -> Result<LiveReplaySubscribeResult, LiveReplayStoreError>
fn subscribe_after_cursor( &self, cursor: &SessionCursor, ) -> Result<LiveReplaySubscribeResult, LiveReplayStoreError>
Subscribe after
cursor, replaying buffered events before live events. Read moreSource§fn current_cursor(
&self,
session_id: &str,
revision: SessionRevision,
) -> SessionCursor
fn current_cursor( &self, session_id: &str, revision: SessionRevision, ) -> SessionCursor
Return the latest cursor known locally for a session. Read more
Source§fn trim_session(&self, session_id: &str) -> Result<(), LiveReplayStoreError>
fn trim_session(&self, session_id: &str) -> Result<(), LiveReplayStoreError>
Apply best-effort retention trimming for a session. Read more
Auto Trait Implementations§
impl !Freeze for InMemoryLiveReplayStore
impl RefUnwindSafe for InMemoryLiveReplayStore
impl Send for InMemoryLiveReplayStore
impl Sync for InMemoryLiveReplayStore
impl Unpin for InMemoryLiveReplayStore
impl UnsafeUnpin for InMemoryLiveReplayStore
impl UnwindSafe for InMemoryLiveReplayStore
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
Mutably borrows from an owned value. Read more