pub struct ResponsesApiProxyHandle {
pub child: Child,
pub server_info_path: Option<PathBuf>,
}Expand description
Running responses proxy process and metadata.
Fields§
§child: ChildSpawned codex responses-api-proxy child (inherits kill-on-drop).
server_info_path: Option<PathBuf>Optional --server-info path that may contain {port,pid} JSON.
Implementations§
Source§impl ResponsesApiProxyHandle
impl ResponsesApiProxyHandle
Sourcepub async fn read_server_info(
&self,
) -> Result<Option<ResponsesApiProxyInfo>, CodexError>
pub async fn read_server_info( &self, ) -> Result<Option<ResponsesApiProxyInfo>, CodexError>
Reads and parses the {port,pid} JSON written by --server-info.
Returns Ok(None) when no server info path was configured.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResponsesApiProxyHandle
impl !RefUnwindSafe for ResponsesApiProxyHandle
impl Send for ResponsesApiProxyHandle
impl Sync for ResponsesApiProxyHandle
impl Unpin for ResponsesApiProxyHandle
impl UnsafeUnpin for ResponsesApiProxyHandle
impl !UnwindSafe for ResponsesApiProxyHandle
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