pub enum JobInitSpec {
ResumeJob {
job_id: Uuid,
},
RestartJob {
job_id: Uuid,
},
Image {
image_id: ImageId,
},
}Variants§
ResumeJob
Resume a previously started job.
RestartJob
Restart a job.
Image
Which image to base this job off. If the image is not locally cached at the supervisor, it will be fetched using its manifest prior to executing the job.
Images are content-addressed by the SHA-256 digest of their manifest.
Trait Implementations§
Source§impl Clone for JobInitSpec
impl Clone for JobInitSpec
Source§fn clone(&self) -> JobInitSpec
fn clone(&self) -> JobInitSpec
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 JobInitSpec
impl Debug for JobInitSpec
Source§impl<'de> Deserialize<'de> for JobInitSpec
impl<'de> Deserialize<'de> for JobInitSpec
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 JobInitSpec
impl RefUnwindSafe for JobInitSpec
impl Send for JobInitSpec
impl Sync for JobInitSpec
impl Unpin for JobInitSpec
impl UnwindSafe for JobInitSpec
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