pub struct Process {
pub command: String,
pub cwd: String,
pub log_monitors: Vec<String>,
pub name: String,
pub onfail: Option<String>,
pub onsucceed: Option<String>,
}
Expand description
Represents and contains a given runtime job task process.
This object contains all of the data necessary to run a given process. This data includes the
process name, the command
which should be executed using the current BinCommand
, the
directory in which to execute the command
, any log monitors which should monitor the command
output, as well as any actions which should be performed when the command fails or succeeds.
Fields§
§command: String
§cwd: String
§log_monitors: Vec<String>
§name: String
§onfail: Option<String>
§onsucceed: Option<String>
Implementations§
Source§impl Process
impl Process
Sourcepub fn cwd(self, d: String) -> Self
pub fn cwd(self, d: String) -> Self
Builds Process
with the specified current working directory.
This directory is where command
will be executed using the runtime BinCommand
.
Sourcepub fn log_monitors(self, m: Vec<String>) -> Self
pub fn log_monitors(self, m: Vec<String>) -> Self
Builds Process
with the specified log monitors.
Sourcepub fn onfail(self, f: Option<String>) -> Self
pub fn onfail(self, f: Option<String>) -> Self
Builds Process
with the name of the action to execute if the command
fails.
Trait Implementations§
impl Eq for Process
impl StructuralPartialEq for Process
Auto Trait Implementations§
impl Freeze for Process
impl RefUnwindSafe for Process
impl Send for Process
impl Sync for Process
impl Unpin for Process
impl UnwindSafe for Process
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.