pub struct CodexTranscript { /* private fields */ }Implementations§
Source§impl CodexTranscript
impl CodexTranscript
pub fn new(path: impl Into<PathBuf>) -> Self
Sourcepub fn with_prices(self, prices: &'static Table) -> Self
pub fn with_prices(self, prices: &'static Table) -> Self
See ClaudeTranscript::with_prices.
Sourcepub fn with_spans(self, retention: SpanRetention) -> Self
pub fn with_spans(self, retention: SpanRetention) -> Self
Keep every span instead of the newest MAX_SPANS. See SpanRetention.
Trait Implementations§
Source§impl SessionTracker for CodexTranscript
impl SessionTracker for CodexTranscript
Source§fn refresh(&mut self) -> Result<bool>
fn refresh(&mut self) -> Result<bool>
Ingest whatever was appended since the last call. Returns true when
there is still unread data (the byte budget was exhausted).
fn summary(&self) -> &SessionSummary
fn path(&self) -> &Path
Source§fn refresh_all(&mut self) -> Result<()>
fn refresh_all(&mut self) -> Result<()>
Ingest the whole file, however many refreshes that takes. For a
one-shot read such as an export; the live collector spreads a large
transcript over several ticks instead.
Auto Trait Implementations§
impl Freeze for CodexTranscript
impl RefUnwindSafe for CodexTranscript
impl Send for CodexTranscript
impl Sync for CodexTranscript
impl Unpin for CodexTranscript
impl UnsafeUnpin for CodexTranscript
impl UnwindSafe for CodexTranscript
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