pub struct ClaudeLog { /* private fields */ }Expand description
Incremental reader for one Claude Code session: its transcript plus the
subagent transcripts Claude Code keeps in <session>/subagents/.
Transcripts grow to tens of megabytes, so each file is only read from its last offset and usage is kept per assistant message id: Claude Code repeats the same message as it streams and for each content block (and a forked subagent starts with a copy of its parent’s last message), and only the last copy carries the final count.
Implementations§
Auto Trait Implementations§
impl Forget for ClaudeLog
impl Freeze for ClaudeLog
impl Move for ClaudeLog
impl RefUnwindSafe for ClaudeLog
impl Send for ClaudeLog
impl Sync for ClaudeLog
impl Unpin for ClaudeLog
impl UnsafeUnpin for ClaudeLog
impl UnwindSafe for ClaudeLog
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