pub enum DynamicRequestError {
Parse(DocumentError),
Bounds(String),
PropositionLabels,
LabelCount {
operation: DynamicOperation,
count: usize,
max: usize,
},
OutputKind {
operation: DynamicOperation,
output: DynamicOutputKind,
},
Abstention(String),
ZeroDeadline,
ZeroCostCap,
TaskFamilyNotAllowed(TaskFamily),
}Expand description
Why a request failed validation (3.2). Nothing was dispatched.
Variants§
Parse(DocumentError)
The document was refused by the bounded parser or its schema.
Bounds(String)
A structural bound of 3.2.
PropositionLabels
proposition takes exactly the ordered labels false, true.
LabelCount
OutputKind
The operation does not allow the required output kind.
Abstention(String)
The abstention policy does not fit the output kind, or a threshold is
outside [0, 1].
ZeroDeadline
ZeroCostCap
TaskFamilyNotAllowed(TaskFamily)
The task family is not on the host’s allowlist.
Trait Implementations§
Source§impl Clone for DynamicRequestError
impl Clone for DynamicRequestError
Source§impl Debug for DynamicRequestError
impl Debug for DynamicRequestError
Source§impl Display for DynamicRequestError
impl Display for DynamicRequestError
impl Eq for DynamicRequestError
Source§impl Error for DynamicRequestError
impl Error for DynamicRequestError
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 DynamicRequestError
impl PartialEq for DynamicRequestError
impl StructuralPartialEq for DynamicRequestError
Auto Trait Implementations§
impl Freeze for DynamicRequestError
impl RefUnwindSafe for DynamicRequestError
impl Send for DynamicRequestError
impl Sync for DynamicRequestError
impl Unpin for DynamicRequestError
impl UnsafeUnpin for DynamicRequestError
impl UnwindSafe for DynamicRequestError
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