pub enum SubmitError {
UnknownPool(Arc<str>),
UnknownResource(Arc<str>),
ResourceExceedsCapacity(Arc<str>),
ReservationConflict,
Cycle,
UnknownDependency(Arc<str>),
Full,
Overloaded,
DuplicateKeyInBatch(Arc<str>),
Invalid(&'static str),
}Expand description
Why a submission was rejected.
Variants§
UnknownPool(Arc<str>)
No pool with this name.
UnknownResource(Arc<str>)
No resource with this name.
ResourceExceedsCapacity(Arc<str>)
Requested amount can never be satisfied by the resource.
ReservationConflict
The pool’s fixed-start reservation limit would be exceeded at that time.
Cycle
The dependencies would form a cycle.
UnknownDependency(Arc<str>)
A dependency names an unknown key and the pool rejects unknown dependencies.
Full
Bounds reached and the pool’s policy is Wait: retry once Action::SpaceAvailable is seen.
Overloaded
Bounds reached and the policy is Reject (or shedding found no victim).
DuplicateKeyInBatch(Arc<str>)
The key already exists and the batch tried to define it twice.
Invalid(&'static str)
The spec is malformed.
Trait Implementations§
Source§impl Clone for SubmitError
impl Clone for SubmitError
Source§impl Debug for SubmitError
impl Debug for SubmitError
Source§impl Display for SubmitError
impl Display for SubmitError
impl Eq for SubmitError
Source§impl Error for SubmitError
impl Error for SubmitError
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 SubmitError
impl PartialEq for SubmitError
impl StructuralPartialEq for SubmitError
Auto Trait Implementations§
impl Freeze for SubmitError
impl RefUnwindSafe for SubmitError
impl Send for SubmitError
impl Sync for SubmitError
impl Unpin for SubmitError
impl UnsafeUnpin for SubmitError
impl UnwindSafe for SubmitError
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