Skip to main content

WorkerSpawner

Trait WorkerSpawner 

Source
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§

Source

fn spawn_daemon( &self, config: ProcessConfig, ) -> impl Future<Output = Result<SpawnedProcess>> + Send

Spawn a daemon process (alias for spawn)

Source

fn is_systemd_available(&self) -> bool

Check if systemd is available

Source

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.

Implementors§