pub struct CodexRestBackend { /* private fields */ }Expand description
Production REST backend.
One-shot calls create a short-lived Codex session. Stateful bridge calls use
sessions created by POST /v1/sessions.
Implementations§
Source§impl CodexRestBackend
impl CodexRestBackend
pub fn with_limits(limits: RestLimits) -> Self
Trait Implementations§
Source§impl Clone for CodexRestBackend
impl Clone for CodexRestBackend
Source§fn clone(&self) -> CodexRestBackend
fn clone(&self) -> CodexRestBackend
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 Default for CodexRestBackend
impl Default for CodexRestBackend
Source§impl RestBackend for CodexRestBackend
impl RestBackend for CodexRestBackend
fn compatibility_report(&self) -> RestFuture<CompatibilityReport>
fn run_text_turn( &self, request: RestTextTurnRequest, ) -> RestFuture<RestTextTurnResponse>
fn create_session( &self, request: RestSessionCreateRequest, ) -> RestFuture<RestSessionCreateResponse>
fn list_sessions(&self) -> RestFuture<Vec<RestSessionSummary>>
fn delete_session(&self, session_id: String) -> RestFuture<RestStatusResponse>
fn call_method(&self, request: RestCallRequest) -> RestFuture<RestCallResponse>
fn poll_event( &self, session_id: String, timeout_ms: Option<u64>, ) -> RestFuture<RestEventResponse>
fn reply_request_result( &self, session_id: String, request_key: String, body: RestRequestReplyResultRequest, ) -> RestFuture<RestRequestReplyResponse>
fn reply_request_error( &self, session_id: String, request_key: String, body: RestErrorReplyRequest, ) -> RestFuture<RestRequestReplyResponse>
Auto Trait Implementations§
impl Freeze for CodexRestBackend
impl !RefUnwindSafe for CodexRestBackend
impl Send for CodexRestBackend
impl Sync for CodexRestBackend
impl Unpin for CodexRestBackend
impl UnsafeUnpin for CodexRestBackend
impl !UnwindSafe for CodexRestBackend
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