pub struct Entry<Z> where
Z: Send + Sync + 'static,
Z: TimeZone, {
pub id: i32,
pub schedule: Schedule,
pub next: Option<DateTime<Z>>,
pub run: Arc<Mutex<dyn FnMut() + Send + Sync + 'static>>,
}Expand description
Entry wrap data about the job
Fields
id: i32schedule: Schedulenext: Option<DateTime<Z>>run: Arc<Mutex<dyn FnMut() + Send + Sync + 'static>>Trait Implementations
Auto Trait Implementations
impl<Z> RefUnwindSafe for Entry<Z> where
<Z as TimeZone>::Offset: RefUnwindSafe,
impl<Z> Send for Entry<Z> where
<Z as TimeZone>::Offset: Send,
impl<Z> Sync for Entry<Z> where
<Z as TimeZone>::Offset: Sync,
impl<Z> Unpin for Entry<Z> where
<Z as TimeZone>::Offset: Unpin,
impl<Z> UnwindSafe for Entry<Z> where
<Z as TimeZone>::Offset: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more