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§
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§
impl SpawnResultExt for PosixSpawnResult
Available on Unix only.