pub struct ClaudeAdapter;Expand description
Public unit-struct adapter for claude. Held as &'static CLAUDE_ADAPTER in the eager phf::Map registry — the value &CLAUDE_ADAPTER
is a const expression so it satisfies phf_map!’s value bound directly.
Trait Implementations§
Source§impl HarnessAdapter for ClaudeAdapter
impl HarnessAdapter for ClaudeAdapter
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
Lowercase identifier —
claude, codex, opencode, … — used as
the dispatch key and as the harness label in log lines.Source§fn session_root(&self) -> PathBuf
fn session_root(&self) -> PathBuf
Per-harness session-store root. Today this is a fixed path
resolved against the user’s home directory; future iterations
may thread
BurnConfig through so the root is configurable.Source§fn plan<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 PlanCtx,
) -> Pin<Box<dyn Future<Output = Result<SpawnPlan>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn plan<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 PlanCtx,
) -> Pin<Box<dyn Future<Output = Result<SpawnPlan>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Compute the spawn plan. Inject session ids or transport-level
args here. Populate
SpawnPlan::session_id when known so
before_spawn / after_exit can stamp eagerly.Source§fn before_spawn<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 PlanCtx,
plan: &'life2 SpawnPlan,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn before_spawn<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 PlanCtx,
plan: &'life2 SpawnPlan,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Pre-spawn side effects. Stamp now if the session id is in
plan,
otherwise drop a pending-stamp manifest the post-spawn ingest can
resolve. Default impl is a no-op so simple adapters don’t have to
spell it out.Source§fn after_exit<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 PlanCtx,
plan: &'life2 SpawnPlan,
) -> Pin<Box<dyn Future<Output = Result<IngestReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn after_exit<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
ctx: &'life1 PlanCtx,
plan: &'life2 SpawnPlan,
) -> Pin<Box<dyn Future<Output = Result<IngestReport>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Final ingest pass after the child exits. Returns an
IngestReport the driver folds into its summary line.Source§fn start_watcher(
&self,
_ctx: &PlanCtx,
_on_report: ReportSink,
) -> Option<WatcherController>
fn start_watcher( &self, _ctx: &PlanCtx, _on_report: ReportSink, ) -> Option<WatcherController>
Optional. Return a
WatcherController from
relayburn_sdk::start_watch_loop to drain a session store
while the child runs; return None for adapters that ingest a
single pre-known file at exit. 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