Struct tokio_schedule::EveryHour [−][src]
pub struct EveryHour<TZ, UntilTZ> where
TZ: Clone + TimeZone + Send + Sync,
UntilTZ: Clone + TimeZone + Send + Sync, { /* fields omitted */ }
Implementations
impl<TZ, UntilTZ> EveryHour<TZ, UntilTZ> where
TZ: Clone + TimeZone + Send + Sync,
UntilTZ: Clone + TimeZone + Send + Sync,
[src]
impl<TZ, UntilTZ> EveryHour<TZ, UntilTZ> where
TZ: Clone + TimeZone + Send + Sync,
UntilTZ: Clone + TimeZone + Send + Sync,
[src]pub fn at(self, minute: u32, second: u32) -> Self
[src]
pub fn in_timezone<NewTZ>(self, new_tz: &NewTZ) -> EveryHour<NewTZ, UntilTZ> where
NewTZ: Clone + TimeZone + Send + Sync,
[src]
NewTZ: Clone + TimeZone + Send + Sync,
pub fn until<NewUntilTZ>(
self,
dt: &DateTime<NewUntilTZ>
) -> EveryHour<TZ, NewUntilTZ> where
NewUntilTZ: Clone + TimeZone + Send + Sync,
[src]
self,
dt: &DateTime<NewUntilTZ>
) -> EveryHour<TZ, NewUntilTZ> where
NewUntilTZ: Clone + TimeZone + Send + Sync,
Trait Implementations
impl<TZ, UntilTZ> Job for EveryHour<TZ, UntilTZ> where
TZ: Clone + TimeZone + Send + Sync,
UntilTZ: Clone + TimeZone + Send + Sync,
UntilTZ::Offset: Sync,
[src]
impl<TZ, UntilTZ> Job for EveryHour<TZ, UntilTZ> where
TZ: Clone + TimeZone + Send + Sync,
UntilTZ: Clone + TimeZone + Send + Sync,
UntilTZ::Offset: Sync,
[src]type TZ = TZ
type UntilTZ = UntilTZ
fn time_to_sleep_at(&self, now: &DateTime<TZ>) -> Duration
[src]
fn time_to_sleep_at(&self, now: &DateTime<TZ>) -> Duration
[src]This method acts like time_to_sleep but with custom reference time
fn timezone(&self) -> &Self::TZ
[src]
fn get_until(&self) -> Option<&DateTime<UntilTZ>>
[src]
fn time_to_sleep(&self) -> Option<Duration>
[src]
fn time_to_sleep(&self) -> Option<Duration>
[src]This method returns Duration from now to next job run
Auto Trait Implementations
impl<TZ, UntilTZ> RefUnwindSafe for EveryHour<TZ, UntilTZ> where
TZ: RefUnwindSafe,
<UntilTZ as TimeZone>::Offset: RefUnwindSafe,
TZ: RefUnwindSafe,
<UntilTZ as TimeZone>::Offset: RefUnwindSafe,
impl<TZ, UntilTZ> Send for EveryHour<TZ, UntilTZ> where
<UntilTZ as TimeZone>::Offset: Send,
<UntilTZ as TimeZone>::Offset: Send,
impl<TZ, UntilTZ> Sync for EveryHour<TZ, UntilTZ> where
<UntilTZ as TimeZone>::Offset: Sync,
<UntilTZ as TimeZone>::Offset: Sync,
impl<TZ, UntilTZ> Unpin for EveryHour<TZ, UntilTZ> where
TZ: Unpin,
<UntilTZ as TimeZone>::Offset: Unpin,
TZ: Unpin,
<UntilTZ as TimeZone>::Offset: Unpin,
impl<TZ, UntilTZ> UnwindSafe for EveryHour<TZ, UntilTZ> where
TZ: UnwindSafe,
<UntilTZ as TimeZone>::Offset: UnwindSafe,
TZ: UnwindSafe,
<UntilTZ as TimeZone>::Offset: UnwindSafe,