oscall 0.0.2

Low-level cross-platform interface to operating system services: files, memory mapping, networking and more, with no libc on Linux
Documentation
//! Child processes on WebAssembly: there are none.

use crate::process::{Command, ExitStatus, ResourceUsage};
use crate::{ErrorKind, Result};

/// Never exists: nothing can be spawned.
#[derive(Debug)]
pub(crate) enum Child {}

pub(crate) fn spawn(_command: &Command<'_>) -> Result<Child> {
    Err(ErrorKind::Unsupported.into())
}

impl Child {
    pub(crate) fn id(&self) -> u32 {
        match *self {}
    }

    pub(crate) fn wait(&self, _block: bool) -> Result<Option<(ExitStatus, Option<ResourceUsage>)>> {
        match *self {}
    }

    pub(crate) fn kill(&self) -> Result<()> {
        match *self {}
    }
}