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,
VisionApi(String),
}Expand description
Errors produced by the ACP pool, worker runtime, or vision API.
Variants§
Spawn(String)
Failed to spawn or initialize ACP.
Rpc(String)
JSON-RPC request or response failure.
RateLimited
ACP reported a rate limit.
QuotaExceeded
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.
VisionApi(String)
Vision API HTTP call failed.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.