#[non_exhaustive]pub enum JobErrorKind {
AlreadyRunning,
AlreadyStopping,
JobAlreadyExists,
CannotResume,
JobNotFound,
MaxConcurrentJobs,
ImageNotFound,
ImageInvalid,
ImageNotCompatible,
InternalError,
}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.
AlreadyRunning
The requested job is already running and thus cannot be started again.
AlreadyStopping
The requested job is already in the process of being shut down.
JobAlreadyExists
A job with this ID was previously running on this supervisor,
but we weren’t asked to resume it.
CannotResume
Cannot resume this job, either because this functionality is unsupported or because this particular job cannot be resumed.
JobNotFound
Job with the specified ID cannot be found.
MaxConcurrentJobs
The maximum number of concurrent jobs has been reached.
ImageNotFound
The requested image cannot be found (either its manifest or a resource stated therein cannot be fetched):
ImageInvalid
There is some problem with the image.
ImageNotCompatible
The image is not compatible with, or does not meet the expectations of this supervisor.
InternalError
Internal error within the supervisor:
Trait Implementations§
Source§impl Clone for JobErrorKind
impl Clone for JobErrorKind
Source§fn clone(&self) -> JobErrorKind
fn clone(&self) -> JobErrorKind
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 JobErrorKind
impl Debug for JobErrorKind
Source§impl<'de> Deserialize<'de> for JobErrorKind
impl<'de> Deserialize<'de> for JobErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JobErrorKind
impl RefUnwindSafe for JobErrorKind
impl Send for JobErrorKind
impl Sync for JobErrorKind
impl Unpin for JobErrorKind
impl UnwindSafe for JobErrorKind
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