pub enum PredicateError<E> {
InvalidNodeEdges(usize),
ProgramErrors(ProgramErrors<E>),
ConstraintsUnsatisfied(ConstraintsUnsatisfied),
Mutations(MutationsError),
}
Expand description
check_predicate
error.
Variants§
InvalidNodeEdges(usize)
Failed to retrieve edges for a node, indicating that the predicate’s graph is invalid.
ProgramErrors(ProgramErrors<E>)
The execution of one or more programs failed.
ConstraintsUnsatisfied(ConstraintsUnsatisfied)
One or more of the constraints were unsatisfied.
Mutations(MutationsError)
One or more of the mutations were invalid.
Trait Implementations§
Source§impl<E: Debug> Debug for PredicateError<E>
impl<E: Debug> Debug for PredicateError<E>
Source§impl<E> Display for PredicateError<E>where
ProgramErrors<E>: Display,
impl<E> Display for PredicateError<E>where
ProgramErrors<E>: Display,
Source§impl<E> Error for PredicateError<E>
impl<E> Error for PredicateError<E>
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<E> From<ConstraintsUnsatisfied> for PredicateError<E>
impl<E> From<ConstraintsUnsatisfied> for PredicateError<E>
Source§fn from(source: ConstraintsUnsatisfied) -> Self
fn from(source: ConstraintsUnsatisfied) -> Self
Converts to this type from the input type.
Source§impl<E> From<MutationsError> for PredicateError<E>
impl<E> From<MutationsError> for PredicateError<E>
Source§fn from(source: MutationsError) -> Self
fn from(source: MutationsError) -> Self
Converts to this type from the input type.
Source§impl<E> From<ProgramErrors<E>> for PredicateError<E>
impl<E> From<ProgramErrors<E>> for PredicateError<E>
Source§fn from(source: ProgramErrors<E>) -> Self
fn from(source: ProgramErrors<E>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> Freeze for PredicateError<E>
impl<E> !RefUnwindSafe for PredicateError<E>
impl<E> Send for PredicateError<E>where
E: Send,
impl<E> Sync for PredicateError<E>where
E: Sync,
impl<E> Unpin for PredicateError<E>where
E: Unpin,
impl<E> !UnwindSafe for PredicateError<E>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more