pub struct Runner {
pub proc: GroupChild,
pub info: ProcInfo,
pub restart_info: RestartInfo,
pub user_terminated: bool,
pub output: Arc<Mutex<OutputBuffer>>,
}
Expand description
Child process controller
Fields§
§proc: GroupChild
§info: ProcInfo
§restart_info: RestartInfo
§user_terminated: bool
Flag set in stop/down command to prevent restart
output: Arc<Mutex<OutputBuffer>>
Implementations§
Source§impl Runner
impl Runner
pub fn spawn( job_id: JobId, args: &[String], restart_info: RestartInfo, channel: Sender<Pid>, ) -> Result<Self, DispatcherError>
pub fn update_proc_state(&mut self) -> &ProcInfo
pub fn is_running(&mut self) -> bool
pub fn terminate(&mut self) -> Result<(), Error>
pub fn restart_infos(&mut self) -> Option<JobSpawnInfo>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Runner
impl RefUnwindSafe for Runner
impl Send for Runner
impl Sync for Runner
impl Unpin for Runner
impl UnwindSafe for Runner
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