pub struct LogStore { /* private fields */ }Implementations§
Source§impl LogStore
impl LogStore
pub fn new() -> Self
pub async fn create_session_log(&self, session_id: &str)
pub async fn append(&self, session_id: &str, entry: LogEntry)
pub async fn get_log(&self, session_id: &str) -> Option<Vec<LogEntry>>
Sourcepub async fn get_incoming_after(
&self,
session_id: &str,
after_sequence: u64,
) -> Vec<(u64, LogEntry)>
pub async fn get_incoming_after( &self, session_id: &str, after_sequence: u64, ) -> Vec<(u64, LogEntry)>
Returns incoming log entries with 0-based index >= after_sequence.
Only Incoming entries are returned (Internal/Checkpoint are filtered).
RFC-MACP-0006-A1: used by StreamSession passive subscribe to replay
accepted session history to late-joining agents.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LogStore
impl !RefUnwindSafe for LogStore
impl !UnwindSafe for LogStore
impl Send for LogStore
impl Sync for LogStore
impl Unpin for LogStore
impl UnsafeUnpin for LogStore
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