pub enum BackendConfig {
Local {
config: LocalBackendConfig,
},
Docker {
config: DockerBackendConfig,
},
Tes {
config: TesBackendConfig,
},
LsfApptainer {
config: LsfApptainerBackendConfig,
},
SlurmApptainer {
config: SlurmApptainerBackendConfig,
},
}Expand description
Represents supported task execution backends.
Variants§
Local
Use the local task execution backend.
Fields
config: LocalBackendConfigThe inner local backend configuration.
Docker
Use the Docker task execution backend.
Fields
config: DockerBackendConfigThe inner Docker backend configuration.
Tes
Use the TES task execution backend.
Fields
config: TesBackendConfigThe inner TES backend configuration.
LsfApptainer
Use the experimental LSF + Apptainer task execution backend.
Requires enabling experimental features.
Fields
config: LsfApptainerBackendConfigThe inner LSF Apptainer backend configuration.
SlurmApptainer
Use the experimental Slurm + Apptainer task execution backend.
Requires enabling experimental features.
Fields
config: SlurmApptainerBackendConfigThe inner Slurm Apptainer backend configuration.
Implementations§
Source§impl BackendConfig
impl BackendConfig
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.
Sourcepub fn as_lsf_apptainer(&self) -> Option<&LsfApptainerBackendConfig>
pub fn as_lsf_apptainer(&self) -> Option<&LsfApptainerBackendConfig>
Converts the backend configuration into a LSF Apptainer backend configuration
Returns None if the backend configuration is not LSF Apptainer.
Sourcepub fn as_slurm_apptainer(&self) -> Option<&SlurmApptainerBackendConfig>
pub fn as_slurm_apptainer(&self) -> Option<&SlurmApptainerBackendConfig>
Converts the backend configuration into a Slurm Apptainer backend configuration
Returns None if the backend configuration is not Slurm Apptainer.
Trait Implementations§
Source§impl Clone for BackendConfig
impl Clone for BackendConfig
Source§fn clone(&self) -> BackendConfig
fn clone(&self) -> BackendConfig
1.0.0 (const: unstable) · 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
impl Eq for BackendConfig
Source§impl From<DockerBackendConfig> for BackendConfig
impl From<DockerBackendConfig> for BackendConfig
Source§fn from(config: DockerBackendConfig) -> Self
fn from(config: DockerBackendConfig) -> Self
Source§impl From<LocalBackendConfig> for BackendConfig
impl From<LocalBackendConfig> for BackendConfig
Source§fn from(config: LocalBackendConfig) -> Self
fn from(config: LocalBackendConfig) -> Self
Source§impl From<LsfApptainerBackendConfig> for BackendConfig
impl From<LsfApptainerBackendConfig> for BackendConfig
Source§fn from(config: LsfApptainerBackendConfig) -> Self
fn from(config: LsfApptainerBackendConfig) -> Self
Source§impl From<SlurmApptainerBackendConfig> for BackendConfig
impl From<SlurmApptainerBackendConfig> for BackendConfig
Source§fn from(config: SlurmApptainerBackendConfig) -> Self
fn from(config: SlurmApptainerBackendConfig) -> Self
Source§impl From<TesBackendConfig> for BackendConfig
impl From<TesBackendConfig> for BackendConfig
Source§fn from(config: TesBackendConfig) -> Self
fn from(config: TesBackendConfig) -> Self
Source§impl<'de> FromToml<'de> for BackendConfig
impl<'de> FromToml<'de> for BackendConfig
Source§impl PartialEq for BackendConfig
impl PartialEq for BackendConfig
Source§fn eq(&self, other: &BackendConfig) -> bool
fn eq(&self, other: &BackendConfig) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BackendConfig
Source§impl ToToml for BackendConfig
impl ToToml for BackendConfig
Source§fn to_optional_toml<'a>(
&'a self,
arena: &'a Arena,
) -> Result<Option<Item<'a>>, ToTomlError>
fn to_optional_toml<'a>( &'a self, arena: &'a Arena, ) -> Result<Option<Item<'a>>, ToTomlError>
Auto Trait Implementations§
impl Freeze for BackendConfig
impl RefUnwindSafe for BackendConfig
impl Send for BackendConfig
impl Sync for BackendConfig
impl Unpin for BackendConfig
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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