Skip to main content

SessionSource

Trait SessionSource 

Source
pub trait SessionSource {
    // Required methods
    fn session_bounds(&self) -> Vec<(String, Option<i64>)>;
    fn take_session(&mut self, trace_id: &str) -> Result<Vec<TraceRecord>>;
}
Expand description

Claude sessions the export opens one at a time.

Required Methods§

Source

fn session_bounds(&self) -> Vec<(String, Option<i64>)>

Every session, with a lower bound on when its requests can start when one is known.

Source

fn take_session(&mut self, trace_id: &str) -> Result<Vec<TraceRecord>>

The session’s rows in source order.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl SessionSource for FxHashMap<String, Vec<TraceRecord>>

Source§

fn session_bounds(&self) -> Vec<(String, Option<i64>)>

Source§

fn take_session(&mut self, trace_id: &str) -> Result<Vec<TraceRecord>>

Implementors§