pub enum SequentialDecisionError<E> {
Backend(E),
OutOfOrder {
expected: usize,
actual: usize,
predictions: usize,
},
InvalidTailSkip {
prediction: usize,
count: usize,
},
TokenDomainCountMismatch {
prediction: usize,
expected: usize,
actual: usize,
},
TailBoundaryMismatch {
expected: usize,
actual: Option<usize>,
},
Incomplete {
resolved: usize,
predictions: usize,
},
}Expand description
Failure while resolving an ordered sequential decision chain.
Variants§
Backend(E)
The sampler or sampling backend failed.
OutOfOrder
A traversal boundary did not match the next prediction.
Fields
InvalidTailSkip
A requested tail skip was not proven safe by the plan.
Fields
TokenDomainCountMismatch
Architecture token-domain cardinality drifted across a skipped tail.
Fields
TailBoundaryMismatch
Architecture boundary mapping disagreed within a proposed skipped tail.
Fields
Incomplete
Traversal completed before resolving every prediction.
Trait Implementations§
Source§impl<E: Debug> Debug for SequentialDecisionError<E>
impl<E: Debug> Debug for SequentialDecisionError<E>
Source§impl<E> Display for SequentialDecisionError<E>where
E: Display,
impl<E> Display for SequentialDecisionError<E>where
E: Display,
Source§impl<E> Error for SequentialDecisionError<E>
impl<E> Error for SequentialDecisionError<E>
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<E> Freeze for SequentialDecisionError<E>where
E: Freeze,
impl<E> RefUnwindSafe for SequentialDecisionError<E>where
E: RefUnwindSafe,
impl<E> Send for SequentialDecisionError<E>where
E: Send,
impl<E> Sync for SequentialDecisionError<E>where
E: Sync,
impl<E> Unpin for SequentialDecisionError<E>where
E: Unpin,
impl<E> UnsafeUnpin for SequentialDecisionError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for SequentialDecisionError<E>where
E: 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