pub struct AppServerBuilder { /* private fields */ }Expand description
Builder for launching a Codex app-server process.
Produces commands of the form: codex app-server --listen stdio://
All model, sandbox, and approval configuration is done via JSON-RPC requests after connecting, not via CLI flags.
Implementations§
Source§impl AppServerBuilder
impl AppServerBuilder
Sourcepub fn working_directory<P: Into<PathBuf>>(self, dir: P) -> Self
pub fn working_directory<P: Into<PathBuf>>(self, dir: P) -> Self
Set the working directory for the app-server process.
Sourcepub fn spawn_sync(self) -> Result<Child>
pub fn spawn_sync(self) -> Result<Child>
Spawn the app-server process synchronously.
Trait Implementations§
Source§impl Clone for AppServerBuilder
impl Clone for AppServerBuilder
Source§fn clone(&self) -> AppServerBuilder
fn clone(&self) -> AppServerBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 AppServerBuilder
impl Debug for AppServerBuilder
Auto Trait Implementations§
impl Freeze for AppServerBuilder
impl RefUnwindSafe for AppServerBuilder
impl Send for AppServerBuilder
impl Sync for AppServerBuilder
impl Unpin for AppServerBuilder
impl UnsafeUnpin for AppServerBuilder
impl UnwindSafe for AppServerBuilder
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