pub struct Config {
pub location_path: String,
pub stdout: Option<Output>,
pub stderr: Option<Output>,
pub child_id: Option<u32>,
pub start_time: Option<DateTime<Local>>,
/* private fields */
}
Expand description
Child config struct
Fields§
§location_path: String
location of this config
stdout: Option<Output>
stdout of this child
stderr: Option<Output>
stderr of this child
child_id: Option<u32>
id
start_time: Option<DateTime<Local>>
Implementations§
Source§impl Config
impl Config
pub fn new(comm: String) -> Self
pub fn read_from_yaml_file(filepath: PathBuf) -> Result<Self>
pub fn split_args(&self) -> (String, Option<String>)
pub fn is_repeat(&self) -> bool
pub fn to_duration(&self) -> Result<Duration>
pub fn repeat_command(&self) -> Result<String>
pub fn has_hook(&self) -> bool
pub fn get_hook(&self, key: &String) -> Option<String>
pub fn get_hook_command(&self, key: &String) -> Option<String>
pub fn get_hook_detail(&self, key: &String) -> Option<Vec<String>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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