pub struct AgentConnection(/* private fields */);
Expand description
A connection to a separate agent process over the ACP protocol.
Implementations§
Source§impl AgentConnection
impl AgentConnection
Sourcepub fn connect_to_agent<H: 'static + Client>(
handler: H,
outgoing_bytes: impl Unpin + AsyncWrite,
incoming_bytes: impl Unpin + AsyncRead,
spawn: impl Fn(LocalBoxFuture<'static, ()>) + 'static,
) -> (Self, impl Future<Output = Result<()>>)
pub fn connect_to_agent<H: 'static + Client>( handler: H, outgoing_bytes: impl Unpin + AsyncWrite, incoming_bytes: impl Unpin + AsyncRead, spawn: impl Fn(LocalBoxFuture<'static, ()>) + 'static, ) -> (Self, impl Future<Output = Result<()>>)
Connect to an agent process, handling any incoming requests using the given handler.
Auto Trait Implementations§
impl !Freeze for AgentConnection
impl !RefUnwindSafe for AgentConnection
impl Send for AgentConnection
impl Sync for AgentConnection
impl Unpin for AgentConnection
impl !UnwindSafe for AgentConnection
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