pub struct AcpRuntimeBackend { /* private fields */ }Expand description
Generic ACP v1 client backend for any ACP agent command.
Implementations§
Source§impl AcpRuntimeBackend
impl AcpRuntimeBackend
Sourcepub fn new(harness: HarnessId, launch: RuntimeLaunch) -> AcpRuntimeBackend
pub fn new(harness: HarnessId, launch: RuntimeLaunch) -> AcpRuntimeBackend
Construct an ACP adapter for a named harness/agent command.
Sourcepub fn with_resume_support(self, supported: bool) -> AcpRuntimeBackend
pub fn with_resume_support(self, supported: bool) -> AcpRuntimeBackend
Declare that this known ACP agent advertises session/load or
session/resume. Attach still validates the capability negotiated by
initialize, so a changed or incompatible agent fails honestly.
Trait Implementations§
Source§impl Clone for AcpRuntimeBackend
impl Clone for AcpRuntimeBackend
Source§fn clone(&self) -> AcpRuntimeBackend
fn clone(&self) -> AcpRuntimeBackend
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 AcpRuntimeBackend
impl Debug for AcpRuntimeBackend
Source§impl RuntimeBackend for AcpRuntimeBackend
impl RuntimeBackend for AcpRuntimeBackend
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>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
AcpRuntimeBackend: 'async_trait,
fn start<'life0, 'async_trait>(
&'life0 self,
request: RuntimeStartRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
AcpRuntimeBackend: '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>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
AcpRuntimeBackend: 'async_trait,
fn attach<'life0, 'async_trait>(
&'life0 self,
request: RuntimeAttachRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
AcpRuntimeBackend: '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>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn attach_existing<'life0, 'async_trait>(
&'life0 self,
_request: RuntimeAttachRequest,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn RuntimeConnection>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: '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 AcpRuntimeBackend
impl RefUnwindSafe for AcpRuntimeBackend
impl Send for AcpRuntimeBackend
impl Sync for AcpRuntimeBackend
impl Unpin for AcpRuntimeBackend
impl UnsafeUnpin for AcpRuntimeBackend
impl UnwindSafe for AcpRuntimeBackend
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