pub enum NotifyError<TNode, TGraphError> {
InconsistentStateTransition {
ancestor_node: TNode,
ancestor_status: Status,
descendant_node: TNode,
descendant_status: Status,
},
IllegalStateTransition {
node: TNode,
from: Status,
to: Status,
},
Graph(TGraphError),
}
Expand description
The error type for the search.
Variants§
InconsistentStateTransition
IllegalStateTransition
Graph(TGraphError)
Trait Implementations§
Source§impl<TNode, TGraphError> Display for NotifyError<TNode, TGraphError>
impl<TNode, TGraphError> Display for NotifyError<TNode, TGraphError>
Source§impl<TNode, TGraphError> Error for NotifyError<TNode, TGraphError>
impl<TNode, TGraphError> Error for NotifyError<TNode, TGraphError>
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<TNode, TGraphError> Freeze for NotifyError<TNode, TGraphError>
impl<TNode, TGraphError> RefUnwindSafe for NotifyError<TNode, TGraphError>where
TNode: RefUnwindSafe,
TGraphError: RefUnwindSafe,
impl<TNode, TGraphError> Send for NotifyError<TNode, TGraphError>
impl<TNode, TGraphError> Sync for NotifyError<TNode, TGraphError>
impl<TNode, TGraphError> Unpin for NotifyError<TNode, TGraphError>
impl<TNode, TGraphError> UnwindSafe for NotifyError<TNode, TGraphError>where
TNode: UnwindSafe,
TGraphError: UnwindSafe,
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