Skip to main content

SpawnResultExt

Trait SpawnResultExt 

Source
pub trait SpawnResultExt {
    // Required method
    fn to_process(
        self,
        event_loop: EventLoopHandle,
        sync_: bool,
    ) -> *mut Process;
}
Expand description

Event-loop-aware extension on the raw PosixSpawnResult from bun_spawn_sys. The result type itself lives in the leaf -sys crate (no Process/EventLoopHandle dependency); to_process is added here as a trait method so callers keep the .to_process(loop_, sync) spelling.

Required Methods§

Source

fn to_process(self, event_loop: EventLoopHandle, sync_: bool) -> *mut Process

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl SpawnResultExt for PosixSpawnResult

Available on Unix only.