pub enum BackendConfig {
Local(LocalBackendConfig),
Docker(DockerBackendConfig),
Tes(Box<TesBackendConfig>),
LsfApptainer(Arc<LsfApptainerBackendConfig>),
SlurmApptainer(Arc<SlurmApptainerBackendConfig>),
}Expand description
Represents supported task execution backends.
Variants§
Local(LocalBackendConfig)
Use the local task execution backend.
Docker(DockerBackendConfig)
Use the Docker task execution backend.
Tes(Box<TesBackendConfig>)
Use the TES task execution backend.
LsfApptainer(Arc<LsfApptainerBackendConfig>)
Use the experimental LSF + Apptainer task execution backend.
Requires enabling experimental features.
SlurmApptainer(Arc<SlurmApptainerBackendConfig>)
Use the experimental Slurm + Apptainer task execution backend.
Requires enabling experimental features.
Implementations§
Source§impl BackendConfig
impl BackendConfig
Sourcepub async fn validate(&self, engine_config: &Config) -> Result<()>
pub async fn validate(&self, engine_config: &Config) -> Result<()>
Validates the backend configuration.
Sourcepub fn as_local(&self) -> Option<&LocalBackendConfig>
pub fn as_local(&self) -> Option<&LocalBackendConfig>
Converts the backend configuration into a local backend configuration
Returns None if the backend configuration is not local.
Sourcepub fn as_docker(&self) -> Option<&DockerBackendConfig>
pub fn as_docker(&self) -> Option<&DockerBackendConfig>
Converts the backend configuration into a Docker backend configuration
Returns None if the backend configuration is not Docker.
Sourcepub fn as_tes(&self) -> Option<&TesBackendConfig>
pub fn as_tes(&self) -> Option<&TesBackendConfig>
Converts the backend configuration into a TES backend configuration
Returns None if the backend configuration is not TES.
Trait Implementations§
Source§impl Clone for BackendConfig
impl Clone for BackendConfig
Source§fn clone(&self) -> BackendConfig
fn clone(&self) -> BackendConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BackendConfig
impl Debug for BackendConfig
Source§impl Default for BackendConfig
impl Default for BackendConfig
Source§impl<'de> Deserialize<'de> for BackendConfig
impl<'de> Deserialize<'de> for BackendConfig
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>,
Auto Trait Implementations§
impl Freeze for BackendConfig
impl RefUnwindSafe for BackendConfig
impl Send for BackendConfig
impl Sync for BackendConfig
impl Unpin for BackendConfig
impl UnwindSafe for BackendConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more