pub struct ClaudeCodeRuntimeBackend { /* private fields */ }Expand description
Claude Code live-runtime backend using bidirectional stream-json print mode. It can create/resume sessions and cancel the running turn through the stream-json control channel; the print-mode protocol still exposes no permission-response primitive to this adapter.
Implementations§
Source§impl ClaudeCodeRuntimeBackend
impl ClaudeCodeRuntimeBackend
Sourcepub fn with_launch(launch: RuntimeLaunch) -> Self
pub fn with_launch(launch: RuntimeLaunch) -> Self
Use an explicit Claude Code stream-json command prefix.
Trait Implementations§
Source§impl Clone for ClaudeCodeRuntimeBackend
impl Clone for ClaudeCodeRuntimeBackend
Source§fn clone(&self) -> ClaudeCodeRuntimeBackend
fn clone(&self) -> ClaudeCodeRuntimeBackend
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 moreSource§impl Debug for ClaudeCodeRuntimeBackend
impl Debug for ClaudeCodeRuntimeBackend
Source§impl Default for ClaudeCodeRuntimeBackend
impl Default for ClaudeCodeRuntimeBackend
Source§impl RuntimeBackend for ClaudeCodeRuntimeBackend
impl RuntimeBackend for ClaudeCodeRuntimeBackend
Source§fn capabilities(&self) -> RuntimeCapabilities
fn capabilities(&self) -> RuntimeCapabilities
Honest mechanical capability report.
Source§fn start<'life0, 'async_trait>(
&'life0 self,
request: RuntimeStartRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
request: RuntimeStartRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Create a fresh harness-native session.
Source§fn attach<'life0, 'async_trait>(
&'life0 self,
request: RuntimeAttachRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn attach<'life0, 'async_trait>(
&'life0 self,
request: RuntimeAttachRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Resume a persisted harness-native session through a new protocol
connection. This does not imply joining the process that originally
wrote the session.
Source§fn attach_existing<'life0, 'async_trait>(
&'life0 self,
_request: RuntimeAttachRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn attach_existing<'life0, 'async_trait>(
&'life0 self,
_request: RuntimeAttachRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Join an already-running harness process or server. Most stock harnesses
cannot do this; adapters must opt in rather than silently treating a
persisted resume as a live attach.
Auto Trait Implementations§
impl Freeze for ClaudeCodeRuntimeBackend
impl RefUnwindSafe for ClaudeCodeRuntimeBackend
impl Send for ClaudeCodeRuntimeBackend
impl Sync for ClaudeCodeRuntimeBackend
impl Unpin for ClaudeCodeRuntimeBackend
impl UnsafeUnpin for ClaudeCodeRuntimeBackend
impl UnwindSafe for ClaudeCodeRuntimeBackend
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