pub struct CronStore { /* private fields */ }Implementations§
Source§impl CronStore
impl CronStore
pub fn new(data_dir: impl AsRef<Path>) -> Result<Self>
pub fn list(&self) -> Result<Vec<CronTask>>
pub fn add(&self, id: &str, schedule: &str, command: &str) -> Result<CronTask>
pub fn update( &self, id: &str, schedule: Option<&str>, command: Option<&str>, ) -> Result<CronTask>
pub fn pause(&self, id: &str) -> Result<CronTask>
pub fn resume(&self, id: &str) -> Result<CronTask>
pub fn remove(&self, id: &str) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CronStore
impl RefUnwindSafe for CronStore
impl Send for CronStore
impl Sync for CronStore
impl Unpin for CronStore
impl UnsafeUnpin for CronStore
impl UnwindSafe for CronStore
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