#[non_exhaustive]pub enum DispatchError {
CapacityExceeded,
IndexTypeTooSmall,
InvalidNetwork,
UnknownTimePoint,
TimeWentBackwards,
NotExecutable(TimePoint),
AlreadyHappened(TimePoint),
DeadlineMissed(TimePoint),
ContingentOutOfBounds(TimePoint),
ConstraintViolated(TimePoint),
OutputFull,
Overflow,
}Expand description
Reasons a dispatcher call failed or detected a problem.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CapacityExceeded
The network needs more than N points or E entries.
IndexTypeTooSmall
The network has more points or entries than the dispatcher’s Index type can
address.
InvalidNetwork
The network is malformed: a bad index, a contingent link with lo <= 0 or lo > hi, a
cyclic activation chain, a negative self-loop, or a wait on a non-contingent point.
UnknownTimePoint
The handle is not part of this dispatcher, or has the wrong kind for the call.
TimeWentBackwards
now is earlier than a time passed to an earlier call.
NotExecutable(TimePoint)
Dispatcher::execute was asked to execute a point that may not execute now. Nothing
changed.
AlreadyHappened(TimePoint)
The point already happened.
DeadlineMissed(TimePoint)
An executable point’s window closed before it executed.
ContingentOutOfBounds(TimePoint)
A contingent point was observed outside, or failed to occur within, its declared bounds. The network’s assumptions do not hold; its guarantees are void.
ConstraintViolated(TimePoint)
A constraint of the network is violated, or the window of the point became empty.
OutputFull
The output buffer passed to Dispatcher::step is full.
Overflow
Tick arithmetic overflowed.
Trait Implementations§
Source§impl Clone for DispatchError
impl Clone for DispatchError
impl Copy for DispatchError
Source§impl Debug for DispatchError
impl Debug for DispatchError
Source§impl Display for DispatchError
impl Display for DispatchError
impl Eq for DispatchError
Source§impl Error for DispatchError
impl Error for DispatchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()