Struct steward::process::Process [−][src]
Long running process. Can be constructed via Process::new
or convenience process!
macro.
Fields
tag: &'static str
Tag used as an identificator in output when process runs as a part of a ProcessPool
.
cmd: Cmd<Loc>
Command to run a process.
timeout: Duration
Amount of time to wait before killing hanged process. See also TIMEOUT
.
Implementations
impl<Loc> Process<Loc> where
Loc: Location + Send + Sync,
[src]
impl<Loc> Process<Loc> where
Loc: Location + Send + Sync,
[src]pub fn new(tag: &'static str, cmd: Cmd<Loc>, timeout: Duration) -> Self
[src]
Constructs a new process.
pub fn tag(&self) -> &'static str
[src]
Returns a tag of a process.
pub fn cmd(&self) -> &Cmd<Loc>
[src]
Returns a command of a process.
pub fn timeout(&self) -> Duration
[src]
Returns a timeout of a process.
Auto Trait Implementations
impl<Loc> RefUnwindSafe for Process<Loc> where
Loc: RefUnwindSafe,
impl<Loc> RefUnwindSafe for Process<Loc> where
Loc: RefUnwindSafe,
impl<Loc> UnwindSafe for Process<Loc> where
Loc: UnwindSafe,
impl<Loc> UnwindSafe for Process<Loc> where
Loc: UnwindSafe,