pub enum RevisionError {
BeliefNotFound(String),
MaxBeliefsExceeded,
ContradictionDetected {
new: String,
existing: String,
},
RevisionFailed(String),
}Expand description
Errors returned by BeliefRevisionEngine operations.
Variants§
BeliefNotFound(String)
A referenced belief ID does not exist in the set.
MaxBeliefsExceeded
Adding the belief would exceed max_beliefs.
ContradictionDetected
The new belief directly contradicts an existing one.
Fields
RevisionFailed(String)
Revision failed for an unspecified reason.
Trait Implementations§
Source§impl Clone for RevisionError
impl Clone for RevisionError
Source§fn clone(&self) -> RevisionError
fn clone(&self) -> RevisionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RevisionError
impl Debug for RevisionError
Source§impl Display for RevisionError
impl Display for RevisionError
Source§impl Error for RevisionError
impl Error for RevisionError
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 RevisionError
impl PartialEq for RevisionError
Source§fn eq(&self, other: &RevisionError) -> bool
fn eq(&self, other: &RevisionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RevisionError
Auto Trait Implementations§
impl Freeze for RevisionError
impl RefUnwindSafe for RevisionError
impl Send for RevisionError
impl Sync for RevisionError
impl Unpin for RevisionError
impl UnsafeUnpin for RevisionError
impl UnwindSafe for RevisionError
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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