Skip to main content

spawn_request

Function spawn_request 

Source
pub fn spawn_request(body: SpawnBody) -> SpawnRequest
Expand description

Map a spawn request body onto the core SpawnRequest.

A free function rather than a method because SpawnBody is defined in prospero-types and an inherent impl can only be written by the defining crate. Keeping the conversion here — rather than adding a From impl in prospero-core — preserves ADR 0006’s one-way api → core dependency.