1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
//! Unix-specific extensions. use heim_common::prelude::BoxFuture; use crate::ProcessResult; mod signal; pub use self::signal::Signal; /// Unix-specific extension to [Process]. /// /// [Process]: ../../struct.Process.html #[heim_derive::os_ext_for(crate::Process, cfg(unix))] pub trait ProcessExt { /// Send the signal to process. /// /// Since `-> impl Trait` is not allowed yet in the trait methods, /// this method returns boxed `Future`. This behavior will change later. fn signal(&self, signal: Signal) -> BoxFuture<ProcessResult<()>>; }