Skip to main content

rightkit_process/
lib.rs

1//! `OwnedCommand::inherit_handles_only` restricts inheritance to caller handles/fds plus stdio; Windows requires `windows_spawn_config` for opaque Command settings.
2
3mod health;
4mod owned;
5mod process_handle;
6#[cfg(unix)]
7mod process_unix;
8#[cfg(windows)]
9mod process_windows;
10mod restart;
11#[cfg(windows)]
12mod spawn_windows;
13mod stall;
14mod stderr_tail;
15
16pub use health::{HealthOutcome, HealthPolicy, HealthProbe, HealthTracker};
17pub use owned::{
18    AdoptedProcess, JobAssignmentFailure, JobAssignmentMode, OwnedChild, OwnedCommand,
19    RawHandleOrFd, ReapOutcome, TerminationOptions, UnixContainment, WaitOutcome,
20    DEFAULT_ENV_ALLOWLIST,
21};
22pub use process_handle::ProcessHandle;
23pub use restart::{
24    Generation, RestartMode, RestartOutcome, RestartPermit, RestartPolicy, RestartTracker,
25};
26#[cfg(windows)]
27pub use spawn_windows::{WindowsChild, WindowsSpawnConfig, WindowsStdio};
28pub use stall::{Ack, Cooldown, StallConfig, StallEvent, StallWatchdog};
29pub use stderr_tail::StderrTail;