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 new() -> CodexRuntimeBackend
pub fn new() -> CodexRuntimeBackend
Use codex app-server from PATH.
Sourcepub fn with_launch(launch: RuntimeLaunch) -> CodexRuntimeBackend
pub fn with_launch(launch: RuntimeLaunch) -> CodexRuntimeBackend
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§fn default() -> CodexRuntimeBackend
fn default() -> CodexRuntimeBackend
Returns the “default value” for a type. Read more
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>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
CodexRuntimeBackend: '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,
CodexRuntimeBackend: '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,
CodexRuntimeBackend: '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,
CodexRuntimeBackend: '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 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