pub enum HierarchyError {
OrphanPrevention {
child: TaskId,
parent: TaskId,
},
DepthLimitExceeded {
child: TaskId,
parent: TaskId,
depth: usize,
limit: usize,
},
}Expand description
Error returned when registering a parent-child relationship fails.
Variants§
OrphanPrevention
Parent task has already reached a terminal state; no new children allowed.
DepthLimitExceeded
Adding this child would exceed the configured maximum nesting depth.
Trait Implementations§
Source§impl Clone for HierarchyError
impl Clone for HierarchyError
Source§fn clone(&self) -> HierarchyError
fn clone(&self) -> HierarchyError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HierarchyError
impl Debug for HierarchyError
Source§impl Display for HierarchyError
impl Display for HierarchyError
Source§impl Error for HierarchyError
impl Error for HierarchyError
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()
Source§impl PartialEq for HierarchyError
impl PartialEq for HierarchyError
impl Eq for HierarchyError
impl StructuralPartialEq for HierarchyError
Auto Trait Implementations§
impl Freeze for HierarchyError
impl RefUnwindSafe for HierarchyError
impl Send for HierarchyError
impl Sync for HierarchyError
impl Unpin for HierarchyError
impl UnsafeUnpin for HierarchyError
impl UnwindSafe for HierarchyError
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