pub enum PoolError {
Spawn(String),
Rpc(String),
RateLimited {
retry_after: Option<Duration>,
},
QuotaExceeded,
WorkerCrashed {
worker_id: usize,
message: String,
},
ParseVerdict(String),
Timeout {
worker_id: usize,
timeout: Duration,
},
NoLiveWorkers,
Closed,
}Expand description
Errors produced by the Codex ACP pool and worker runtime.
Variants§
Spawn(String)
Failed to spawn or initialize Codex ACP.
Rpc(String)
JSON-RPC request or response failure.
RateLimited
Codex ACP reported a rate limit.
QuotaExceeded
Codex ACP reported exhausted usage quota.
WorkerCrashed
A worker process or thread crashed.
ParseVerdict(String)
A model response could not be parsed into a verdict.
Timeout
A submitted job exceeded its timeout.
NoLiveWorkers
No worker is currently available to accept jobs.
Closed
The pool has been closed.
Trait Implementations§
impl Eq for PoolError
Source§impl Error for PoolError
impl Error for PoolError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PoolError> for RubricError
impl From<PoolError> for RubricError
impl StructuralPartialEq for PoolError
Auto Trait Implementations§
impl Freeze for PoolError
impl RefUnwindSafe for PoolError
impl Send for PoolError
impl Sync for PoolError
impl Unpin for PoolError
impl UnsafeUnpin for PoolError
impl UnwindSafe for PoolError
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