pub enum ReminderError {
NotFound(String),
AlreadyTerminal(String, ReminderStatus),
InvalidTransition {
id: String,
from: ReminderStatus,
to: ReminderStatus,
},
RequiresApproval(String),
Store(String),
}Variants§
NotFound(String)
AlreadyTerminal(String, ReminderStatus)
InvalidTransition
RequiresApproval(String)
Store(String)
Trait Implementations§
Source§impl Debug for ReminderError
impl Debug for ReminderError
Source§impl Display for ReminderError
impl Display for ReminderError
Source§impl Error for ReminderError
impl Error for ReminderError
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()
Auto Trait Implementations§
impl Freeze for ReminderError
impl RefUnwindSafe for ReminderError
impl Send for ReminderError
impl Sync for ReminderError
impl Unpin for ReminderError
impl UnsafeUnpin for ReminderError
impl UnwindSafe for ReminderError
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