pub trait WorkerSpawner: SpawnerBackend {
// Provided methods
fn spawn_daemon(
&self,
config: ProcessConfig,
) -> impl Future<Output = Result<SpawnedProcess>> + Send { ... }
fn is_systemd_available(&self) -> bool { ... }
fn spawner_type(&self) -> &'static str { ... }
}Expand description
Alias for SpawnerBackend (backward compatibility)
Provided Methods§
Sourcefn spawn_daemon(
&self,
config: ProcessConfig,
) -> impl Future<Output = Result<SpawnedProcess>> + Send
fn spawn_daemon( &self, config: ProcessConfig, ) -> impl Future<Output = Result<SpawnedProcess>> + Send
Spawn a daemon process (alias for spawn)
Sourcefn is_systemd_available(&self) -> bool
fn is_systemd_available(&self) -> bool
Check if systemd is available
Sourcefn spawner_type(&self) -> &'static str
fn spawner_type(&self) -> &'static str
Get the spawner type name
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.