pub struct DockerOpenCodeAdapter { /* private fields */ }Expand description
Docker OpenCode adapter for communicating with containerized agents.
Implementations§
Source§impl DockerOpenCodeAdapter
impl DockerOpenCodeAdapter
Sourcepub fn new(
base_url: &str,
notification_tx: Sender<Value>,
) -> DockerOpenCodeAdapter
pub fn new( base_url: &str, notification_tx: Sender<Value>, ) -> DockerOpenCodeAdapter
Create a new adapter for communicating with a Docker container.
Sourcepub async fn connect(&self) -> Result<(), String>
pub async fn connect(&self) -> Result<(), String>
Connect to the container by performing a health check.
Sourcepub async fn create_session(
&self,
title: Option<&str>,
) -> Result<String, String>
pub async fn create_session( &self, title: Option<&str>, ) -> Result<String, String>
Create a new session in the container.
Sourcepub async fn set_local_session_id(&self, session_id: &str)
pub async fn set_local_session_id(&self, session_id: &str)
Set the local session ID (Routa’s session ID).
Sourcepub async fn get_remote_session_id(&self) -> Option<String>
pub async fn get_remote_session_id(&self) -> Option<String>
Get the remote session ID.
Auto Trait Implementations§
impl Freeze for DockerOpenCodeAdapter
impl !RefUnwindSafe for DockerOpenCodeAdapter
impl Send for DockerOpenCodeAdapter
impl Sync for DockerOpenCodeAdapter
impl Unpin for DockerOpenCodeAdapter
impl UnsafeUnpin for DockerOpenCodeAdapter
impl !UnwindSafe for DockerOpenCodeAdapter
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more