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>Session events for this batch, merged into a single stream in creation order: durable (persisted) events and ephemeral events interleave exactly as they were emitted. Set includeEphemeral: false to receive only durable events. Ephemeral events are never replayable once pruned from the in-memory ring, so a consumer that needs them should keep reading with a non-zero waitMs.
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