pub enum AriaError {
NoItems,
NoEligibleItems,
UserNotFound(String),
ItemNotFound(String),
CyclicPrerequisite(String),
NoFactors,
SerialisationError(String),
}Variants§
NoItems
No items registered in the engine
NoEligibleItems
All items filtered out (prereqs, already seen, etc.)
UserNotFound(String)
User ID not found
ItemNotFound(String)
Item ID not found
CyclicPrerequisite(String)
Prerequisite graph contains a cycle
NoFactors
Factor list is empty — engine needs at least one factor
SerialisationError(String)
Serialisation / deserialisation failure
Trait Implementations§
Source§impl Error for AriaError
impl Error for AriaError
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()
impl StructuralPartialEq for AriaError
Auto Trait Implementations§
impl Freeze for AriaError
impl RefUnwindSafe for AriaError
impl Send for AriaError
impl Sync for AriaError
impl Unpin for AriaError
impl UnsafeUnpin for AriaError
impl UnwindSafe for AriaError
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