pub enum MealPlannerError {
InvalidInput(String),
InvalidConfiguration(String),
NotFound,
Conflict(String),
UnsupportedSchemaVersion {
current: i64,
supported: i64,
},
Storage(Error),
Serialization(Error),
Io(Error),
LockPoisoned,
}Expand description
Errors exposed at the Meal Planner application boundary.
Variants§
InvalidInput(String)
InvalidConfiguration(String)
NotFound
Conflict(String)
UnsupportedSchemaVersion
Storage(Error)
Serialization(Error)
Io(Error)
LockPoisoned
Trait Implementations§
Source§impl Debug for MealPlannerError
impl Debug for MealPlannerError
Source§impl Display for MealPlannerError
impl Display for MealPlannerError
Source§impl Error for MealPlannerError
impl Error for MealPlannerError
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<Error> for MealPlannerError
impl From<Error> for MealPlannerError
Source§impl From<Error> for MealPlannerError
impl From<Error> for MealPlannerError
Auto Trait Implementations§
impl !RefUnwindSafe for MealPlannerError
impl !UnwindSafe for MealPlannerError
impl Freeze for MealPlannerError
impl Send for MealPlannerError
impl Sync for MealPlannerError
impl Unpin for MealPlannerError
impl UnsafeUnpin for MealPlannerError
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