pub enum NousError {
EvaluatorFailed {
name: String,
message: String,
},
Registry(String),
Serde(Error),
ScoreOutOfRange {
value: f64,
},
}Expand description
Errors from Nous evaluation operations.
Variants§
EvaluatorFailed
An evaluator failed during execution.
Registry(String)
Registry error (duplicate name, not found).
Serde(Error)
Serialization/deserialization error.
ScoreOutOfRange
Score value out of range.
Trait Implementations§
Source§impl Error for NousError
impl Error for NousError
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 Freeze for NousError
impl !RefUnwindSafe for NousError
impl Send for NousError
impl Sync for NousError
impl Unpin for NousError
impl UnsafeUnpin for NousError
impl !UnwindSafe for NousError
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