#[non_exhaustive]pub enum Task {
ContainerSpec(Box<ContainerSpec>),
PythonPackageSpec(Box<PythonPackageSpec>),
}Available on crate feature
job-service only.Expand description
The custom task to be executed in this worker pool.
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.
ContainerSpec(Box<ContainerSpec>)
The custom container task.
PythonPackageSpec(Box<PythonPackageSpec>)
The Python packaged task.
Trait Implementations§
impl StructuralPartialEq for Task
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
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