#[non_exhaustive]pub enum RubricError {
ReadPng {
path: PathBuf,
source: Error,
},
Pool(PoolError),
ParseVerdict {
text: String,
source: Error,
},
Assertion {
name: String,
reason: String,
anomalies: Vec<String>,
},
}Expand description
Errors returned by public one-shot rubric APIs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ReadPng
The PNG file could not be read.
Pool(PoolError)
ACP pool or worker failure.
ParseVerdict
Model output could not be parsed as a rubric verdict.
Assertion
A parsed verdict failed the assertion.
Trait Implementations§
Source§impl Debug for RubricError
impl Debug for RubricError
Source§impl Display for RubricError
impl Display for RubricError
Source§impl Error for RubricError
impl Error for RubricError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for RubricError
impl !UnwindSafe for RubricError
impl Freeze for RubricError
impl Send for RubricError
impl Sync for RubricError
impl Unpin for RubricError
impl UnsafeUnpin for RubricError
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