#[non_exhaustive]pub enum TaskFailure {
Disabled,
Budget(BudgetBound),
Routing(String),
Provider(String),
Invalid {
code: String,
reason: String,
},
Disagreement,
}Expand description
Why a task produced no answer to use.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Disabled
The profile switches the task off.
Budget(BudgetBound)
A bound of the turn’s budget was reached.
Routing(String)
No profile can serve the task.
Provider(String)
Every provider attempt failed.
Invalid
The answers failed their checks, repairs included.
Disagreement
The votes found no majority and the profile treats that as failure.
Implementations§
Trait Implementations§
Source§impl Clone for TaskFailure
impl Clone for TaskFailure
Source§impl Debug for TaskFailure
impl Debug for TaskFailure
impl Eq for TaskFailure
Source§impl PartialEq for TaskFailure
impl PartialEq for TaskFailure
impl StructuralPartialEq for TaskFailure
Auto Trait Implementations§
impl Freeze for TaskFailure
impl RefUnwindSafe for TaskFailure
impl Send for TaskFailure
impl Sync for TaskFailure
impl Unpin for TaskFailure
impl UnsafeUnpin for TaskFailure
impl UnwindSafe for TaskFailure
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.