[−][src]Struct lxcrond::config::Job
One line in the crontab file.
Methods
impl Job
[src]
pub fn new(
time_spec: Option<TimeSpec>,
file_spec: Option<FileSpec>,
user: &str,
command: String
) -> Job
[src]
time_spec: Option<TimeSpec>,
file_spec: Option<FileSpec>,
user: &str,
command: String
) -> Job
pub fn user(&self) -> &String
[src]
pub fn command(&self) -> &String
[src]
pub fn args(&self) -> &Vec<String>
[src]
pub fn file_spec(&self) -> &FileSpec
[src]
pub fn set_watch_descriptor(&mut self, wd: i32)
[src]
pub fn is_due(&self, now: DateTime<Local>) -> bool
[src]
return true
if this job is due now or the file spec matches
now
time in seconds
pub fn is_time(&self, now: DateTime<Local>) -> bool
[src]
panics if not a time type cron job
pub fn file_has_changed(&mut self) -> bool
[src]
Check to see if a file has been created or updated panics if not a file type cron job
pub fn dir_has_files(&self) -> bool
[src]
panics if not a directory type cron job
Auto Trait Implementations
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnwindSafe for Job
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,