pub struct RunningProcess {
pub process: Process,
/* private fields */
}Expand description
A process that is currently running and being monitored.
Fields§
§process: ProcessHandle to the process.
Implementations§
Source§impl RunningProcess
impl RunningProcess
Sourcepub fn register_with_reactor(
&mut self,
reactor: &mut Reactor,
) -> Result<(), CoreError>
pub fn register_with_reactor( &mut self, reactor: &mut Reactor, ) -> Result<(), CoreError>
Register active stdio pipe descriptors with a reactor.
Call this once after spawn_start when the process was started with
captured output or stdin data. The assigned tokens are kept internally
and later matched by Self::handle_reactor_event.
Sourcepub fn handle_reactor_event(
&mut self,
reactor: &mut Reactor,
event: &Event,
) -> Result<(), CoreError>
pub fn handle_reactor_event( &mut self, reactor: &mut Reactor, event: &Event, ) -> Result<(), CoreError>
Apply one reactor readiness event to this process’ stdio drain state.
Events for unrelated tokens are ignored. Callers remain responsible for
waiting on Self::process and driving the reactor until Self::io_done
returns true.
Auto Trait Implementations§
impl Freeze for RunningProcess
impl RefUnwindSafe for RunningProcess
impl Send for RunningProcess
impl Sync for RunningProcess
impl Unpin for RunningProcess
impl UnsafeUnpin for RunningProcess
impl UnwindSafe for RunningProcess
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