pub enum TaskConstraintsError {
InvalidMaxAttempts {
max_attempts: u32,
},
EmptyConcurrencyKey,
ZeroTimeout,
EmptyCapabilities,
EmptyCapabilityEntry,
}Expand description
Typed validation errors for TaskConstraints.
Variants§
InvalidMaxAttempts
The configured attempt cap is invalid.
EmptyConcurrencyKey
An empty string was provided as a concurrency key.
ZeroTimeout
A timeout of zero seconds was provided.
EmptyCapabilities
An empty list was provided as required capabilities.
EmptyCapabilityEntry
An individual entry in required_capabilities is an empty string.
Trait Implementations§
Source§impl Clone for TaskConstraintsError
impl Clone for TaskConstraintsError
Source§fn clone(&self) -> TaskConstraintsError
fn clone(&self) -> TaskConstraintsError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskConstraintsError
impl Debug for TaskConstraintsError
Source§impl Display for TaskConstraintsError
impl Display for TaskConstraintsError
Source§impl Error for TaskConstraintsError
impl Error for TaskConstraintsError
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 TaskConstraintsError
impl PartialEq for TaskConstraintsError
impl Eq for TaskConstraintsError
impl StructuralPartialEq for TaskConstraintsError
Auto Trait Implementations§
impl Freeze for TaskConstraintsError
impl RefUnwindSafe for TaskConstraintsError
impl Send for TaskConstraintsError
impl Sync for TaskConstraintsError
impl Unpin for TaskConstraintsError
impl UnsafeUnpin for TaskConstraintsError
impl UnwindSafe for TaskConstraintsError
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