pub struct ClaudeAdapter;Expand description
The Claude Code adapter: tails ~/.claude/projects/<slug>/*.jsonl and
converts records to user_message / agent_message / thinking /
tool_call / tool_result events. Stateless; the tailer thread holds all
mutable state. A unit struct (rather than struct ClaudeAdapter {}) so it
is constructible as a value without a {}; reserved for future per-adapter
knobs (e.g. a forced projects dir) by adding fields + a Default impl.
Trait Implementations§
Source§impl Adapter for ClaudeAdapter
impl Adapter for ClaudeAdapter
Source§fn agent_kind(&self) -> AgentKind
fn agent_kind(&self) -> AgentKind
The agent kind this adapter reports for the session row.
Source§fn spawn(self: Box<Self>, ctx: AdapterContext) -> Result<AdapterHandle>
fn spawn(self: Box<Self>, ctx: AdapterContext) -> Result<AdapterHandle>
Spawn the tailer thread, returning the event stream + outcome handle. Read more
Source§impl Clone for ClaudeAdapter
impl Clone for ClaudeAdapter
Source§fn clone(&self) -> ClaudeAdapter
fn clone(&self) -> ClaudeAdapter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClaudeAdapter
impl RefUnwindSafe for ClaudeAdapter
impl Send for ClaudeAdapter
impl Sync for ClaudeAdapter
impl Unpin for ClaudeAdapter
impl UnsafeUnpin for ClaudeAdapter
impl UnwindSafe for ClaudeAdapter
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