[][src]Struct lxcrond::config::Job

pub struct Job { /* fields omitted */ }

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any