pub enum TodoError {
Database(String),
Json(String),
NotFound(Uuid),
DependencyCycle {
parent_id: Uuid,
child_id: Uuid,
},
SelfDependency(Uuid),
}Expand description
Errors that can occur while reading or writing session todos.
Variants§
Database(String)
A database operation failed.
Json(String)
JSON metadata could not be serialized or parsed.
NotFound(Uuid)
A todo id did not exist in the target session.
DependencyCycle
A dependency would create a cycle.
Fields
SelfDependency(Uuid)
A todo cannot depend on itself.
Trait Implementations§
Source§impl Error for TodoError
impl Error for TodoError
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 TodoError
impl RefUnwindSafe for TodoError
impl Send for TodoError
impl Sync for TodoError
impl Unpin for TodoError
impl UnsafeUnpin for TodoError
impl UnwindSafe for TodoError
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