rightkit_child_process/
lib.rs1mod capture;
4#[cfg(unix)]
5mod exit_watch;
6mod foreign;
7mod health;
8#[cfg(unix)]
9mod identity;
10#[cfg(all(test, unix))]
11mod identity_tests;
12mod launch;
13pub mod login_shell;
14#[cfg(any(unix, windows))]
15mod native_capture;
16mod no_window;
17mod owned;
18mod power;
19mod process_handle;
20mod process_table;
21#[cfg(unix)]
22mod process_unix;
23#[cfg(windows)]
24mod process_windows;
25mod registry;
26mod restart;
27pub mod reveal;
28mod run;
29#[cfg(windows)]
30mod spawn_windows;
31mod stall;
32mod stderr_tail;
33#[cfg(feature = "tokio")]
34pub mod tokio_support;
35#[cfg(unix)]
36mod unix_child;
37mod usage;
38#[cfg(windows)]
39pub mod windows_job;
40
41pub use capture::{read_bounded, CapturedOutput, OutputCapture};
42pub use foreign::{
43 find_processes, process_group_exists, suspend_current_process, sweep, sweep_descendants,
44 sweep_matching, wait_process_group_empty, AdoptedIdentity, AdoptedSignal, IdentityCheck,
45 MatchSweepOptions, MatchSweepReport, MatchedProcess, ProcessQuery, SignalResult, StartToken,
46 SweepReport,
47};
48#[cfg(unix)]
49pub use foreign::{resume_session, signal_session, suspend_session};
50pub use health::{HealthOutcome, HealthPolicy, HealthProbe, HealthTracker};
51pub use launch::{launch_app, open_url};
52#[cfg(any(unix, windows))]
53pub use native_capture::NativeOutputCapture;
54pub use no_window::{command_std, NoWindow, CREATE_BREAKAWAY_FROM_JOB, CREATE_NO_WINDOW};
55pub use owned::{
56 AdoptedProcess, BreakawayDenied, JobAssignmentFailure, JobAssignmentMode, OwnedChild,
57 OwnedCommand, ProcessPriority, RawHandleOrFd, ReapOutcome, TerminationOptions, TreeTermination,
58 UnixContainment, WaitOutcome, DEFAULT_DROP_REAP_TIMEOUT, DEFAULT_ENV_ALLOWLIST,
59};
60pub use power::{PowerAssertion, PowerKind};
61pub use process_handle::ProcessHandle;
62pub use process_table::{process_table, ProcessEntry};
63pub use registry::{owned_count, terminate_all_owned, TerminateAllReport};
64pub use restart::{
65 ConsecutiveFailures, Generation, RestartMode, RestartOutcome, RestartPermit, RestartPolicy,
66 RestartTracker,
67};
68pub use run::{run, run_with_stdin, RunOptions, RunOutput};
69#[cfg(windows)]
70pub use spawn_windows::{with_windows_spawn_lock, WindowsChild, WindowsSpawnConfig, WindowsStdio};
71pub use stall::{
72 Ack, Cooldown, HeartbeatConfig, HeartbeatEvent, HeartbeatWatch, StallConfig, StallEvent,
73 StallWatchdog,
74};
75pub use stderr_tail::StderrTail;
76#[cfg(unix)]
77pub use unix_child::UnixChild;
78pub use usage::{
79 observe_idle, process_usage, tree_usage, BudgetLabels, IdleObservation, ProcessUsage,
80 TreeUsage, UsageRates,
81};
82#[cfg(windows)]
83pub use windows_job::{ExitReason, WindowsJob, WindowsJobBuilder, DEFAULT_ACTIVE_PROCESS_LIMIT};