Skip to main content

ProcessHost

Trait ProcessHost 

Source
pub trait ProcessHost: Sync {
    // Required methods
    fn task_manager(&self) -> &'static Manager;
    fn virtual_file_system(&self) -> &'static VirtualFileSystem;
    fn spawn(&'static self, request: SpawnRequest) -> SpawnFuture;

    // Provided method
    fn network_manager(&self) -> Option<&'static Manager> { ... }
}
Expand description

The host services behind a process capability. Core implements them for its executable context, so a spawned child goes through executable::execute.

Required Methods§

Source

fn task_manager(&self) -> &'static Manager

Source

fn virtual_file_system(&self) -> &'static VirtualFileSystem

Source

fn spawn(&'static self, request: SpawnRequest) -> SpawnFuture

Start the executable as a child task on the caller’s executor. The child’s coroutine must enter its program through ProcessLaunch::run.

Provided Methods§

Source

fn network_manager(&self) -> Option<&'static Manager>

The network stack the process’s sockets use, or None when the system has none. A process gets XilaStartup.network only when its launch granted network rights (ProcessLaunch::network) and this returns a manager.

Implementors§