Skip to main content

LaunchContext

Trait LaunchContext 

pub trait LaunchContext:
    Send
    + Sync
    + 'static { }
Expand description

Platform-supplied context required when launching a child process.

Carries whatever state the host platform needs to attribute the child to the correct user session: a Wayland activation token, a Windows console session id, a macOS Apple Event session, etc. Each platform crate defines a concrete type that implements this trait and threads it through ProcessSpawner::spawn.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§