#[non_exhaustive]pub enum InputError {
Show 15 variants
UnknownEntry(String),
UnknownEvent(String),
UnknownParam(String),
ParamType {
name: String,
expected: String,
got: String,
},
ParamTooDeep(String),
ParamOnResume(String),
CorruptToken(String),
NewerToken,
OtherFlow(String),
OtherVersion,
AnswerMissing,
AnswerUnexpected,
AnswerAmbiguous,
NullFailure,
EventDuringAsk,
}Expand description
A mistake by the host: the run didn’t start, and nothing was evaluated.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UnknownEntry(String)
No entry node has this name.
UnknownEvent(String)
The flow doesn’t declare this event, and it isn’t tick.
UnknownParam(String)
The flow has no param with this name.
ParamType
A param was given a different kind of value than its default.
Fields
ParamTooDeep(String)
A param’s value nests too deeply to store in a token.
ParamOnResume(String)
A param was given to a resume. Params are set when an instance starts, and its token carries them from then on.
CorruptToken(String)
The token is damaged, or isn’t a flow token.
NewerToken
The token was made by a newer flow-runner than this one.
OtherFlow(String)
The token belongs to another flow, named here.
OtherVersion
The token was made by another version of this flow. Load the version
that made it, or Flow::rebind it.
AnswerMissing
The token waits on an ask; resume it with a result or a failure.
AnswerUnexpected
A result or failure was given to a start, or to a token that
isn’t waiting on an ask.
AnswerAmbiguous
Both a result and a failure were given.
NullFailure
The failure given is null, which reads as no failure at all.
EventDuringAsk
An event was given to a token that waits on an ask.
Trait Implementations§
Source§impl Clone for InputError
impl Clone for InputError
Source§impl Debug for InputError
impl Debug for InputError
Source§impl Display for InputError
impl Display for InputError
impl Eq for InputError
Source§impl Error for InputError
impl Error for InputError
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()
Source§impl PartialEq for InputError
impl PartialEq for InputError
impl StructuralPartialEq for InputError
Auto Trait Implementations§
impl Freeze for InputError
impl RefUnwindSafe for InputError
impl Send for InputError
impl Sync for InputError
impl Unpin for InputError
impl UnsafeUnpin for InputError
impl UnwindSafe for InputError
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.