pub struct SessionEventLogReadResult {
pub cursor: String,
pub cursor_status: EventsCursorStatus,
pub events: Vec<SessionEvent>,
pub has_more: bool,
}Expand description
Batch of session events returned by a read, with cursor and continuation metadata.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§cursor: StringOpaque cursor for the next read. Pass back unchanged in the next read.cursor to continue from where this read left off. Always present, even when no events were returned.
cursor_status: EventsCursorStatusCursor status: ‘ok’ means the cursor was applied successfully; ‘expired’ means the cursor referred to an event that no longer exists in history (e.g. truncated or compacted away) and the read started from the beginning of the remaining history.
events: Vec<SessionEvent>Events are delivered in two batches per read: persisted events first (in append order), then ephemeral events (in seq order). When waitMs > 0 and the catch-up batches were empty, post-wait events follow the same two-batch ordering. Persisted and ephemeral events do not interleave within a single read.
has_more: boolTrue when the read returned max events and more events are available immediately. When false, the next read with a non-zero waitMs will block until a new event arrives or the wait expires.
Trait Implementations§
Source§impl Clone for SessionEventLogReadResult
impl Clone for SessionEventLogReadResult
Source§fn clone(&self) -> SessionEventLogReadResult
fn clone(&self) -> SessionEventLogReadResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more