pub struct Muxer { /* private fields */ }
Implementations§
Source§impl Muxer
impl Muxer
pub fn new() -> Result<Self>
pub fn add_hook<T: MuxerHook + 'static>(&mut self, hook: T)
pub fn pump<R, F>(&mut self, func: F) -> R
Sourcepub fn cleanup(&mut self) -> Result<()>
pub fn cleanup(&mut self) -> Result<()>
Send SIGTERM to all children and wait for them to exit.
Sourcepub fn control(&mut self, cmd: Command) -> Result<ChildInfo>
pub fn control(&mut self, cmd: Command) -> Result<ChildInfo>
Create a new child process that inherits stdin, stdout, and stderr and is a member of the same process group.
pub fn forward(&mut self, cmd: Command) -> Result<ChildInfo>
pub fn wait_for_signal(&mut self) -> Signal
pub fn wait_for_match( &mut self, child_info: &ChildInfo, re: Regex, ) -> Result<()>
pub fn wait(&mut self, child_info: &ChildInfo) -> Result<ExitStatus>
Auto Trait Implementations§
impl !Freeze for Muxer
impl !RefUnwindSafe for Muxer
impl !Send for Muxer
impl !Sync for Muxer
impl Unpin for Muxer
impl !UnwindSafe for Muxer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more