pub struct CodexRuntimeBackend { /* private fields */ }Expand description
Codex live-runtime backend using the official codex app-server JSONL
protocol (initialize, thread/start|resume, turn/start|interrupt).
Implementations§
Source§impl CodexRuntimeBackend
impl CodexRuntimeBackend
Sourcepub fn with_launch(launch: RuntimeLaunch) -> Self
pub fn with_launch(launch: RuntimeLaunch) -> Self
Use an explicit command prefix.
Trait Implementations§
Source§impl Clone for CodexRuntimeBackend
impl Clone for CodexRuntimeBackend
Source§fn clone(&self) -> CodexRuntimeBackend
fn clone(&self) -> CodexRuntimeBackend
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 CodexRuntimeBackend
impl Debug for CodexRuntimeBackend
Source§impl Default for CodexRuntimeBackend
impl Default for CodexRuntimeBackend
Source§impl RuntimeBackend for CodexRuntimeBackend
impl RuntimeBackend for CodexRuntimeBackend
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 CodexRuntimeBackend
impl RefUnwindSafe for CodexRuntimeBackend
impl Send for CodexRuntimeBackend
impl Sync for CodexRuntimeBackend
impl Unpin for CodexRuntimeBackend
impl UnsafeUnpin for CodexRuntimeBackend
impl UnwindSafe for CodexRuntimeBackend
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