Struct tokio_schedule::EveryDay [−][src]
pub struct EveryDay<TZ, UntilTZ> where
TZ: Clone + TimeZone + Send + Sync,
UntilTZ: Clone + TimeZone + Send + Sync, { /* fields omitted */ }
Implementations
impl<TZ, UntilTZ> EveryDay<TZ, UntilTZ> where
TZ: Clone + TimeZone + Send + Sync,
UntilTZ: Clone + TimeZone + Send + Sync,
[src]
impl<TZ, UntilTZ> EveryDay<TZ, UntilTZ> where
TZ: Clone + TimeZone + Send + Sync,
UntilTZ: Clone + TimeZone + Send + Sync,
[src]pub fn at(self, hour: u32, minute: u32, second: u32) -> Self
[src]
pub fn in_timezone<NewTZ>(self, new_tz: &NewTZ) -> EveryDay<NewTZ, UntilTZ> where
NewTZ: Clone + TimeZone + Send + Sync,
[src]
NewTZ: Clone + TimeZone + Send + Sync,
pub fn until<NewUntilTZ>(
self,
dt: &DateTime<NewUntilTZ>
) -> EveryDay<TZ, NewUntilTZ> where
NewUntilTZ: Clone + TimeZone + Send + Sync,
[src]
self,
dt: &DateTime<NewUntilTZ>
) -> EveryDay<TZ, NewUntilTZ> where
NewUntilTZ: Clone + TimeZone + Send + Sync,
Trait Implementations
impl<TZ: Clone, UntilTZ: Clone> Clone for EveryDay<TZ, UntilTZ> where
TZ: Clone + TimeZone + Send + Sync,
UntilTZ: Clone + TimeZone + Send + Sync,
[src]
impl<TZ: Clone, UntilTZ: Clone> Clone for EveryDay<TZ, UntilTZ> where
TZ: Clone + TimeZone + Send + Sync,
UntilTZ: Clone + TimeZone + Send + Sync,
[src]impl<TZ: Debug, UntilTZ: Debug> Debug for EveryDay<TZ, UntilTZ> where
TZ: Clone + TimeZone + Send + Sync,
UntilTZ: Clone + TimeZone + Send + Sync,
[src]
impl<TZ: Debug, UntilTZ: Debug> Debug for EveryDay<TZ, UntilTZ> where
TZ: Clone + TimeZone + Send + Sync,
UntilTZ: Clone + TimeZone + Send + Sync,
[src]impl<TZ, UntilTZ> Job for EveryDay<TZ, UntilTZ> where
TZ: Clone + TimeZone + Send + Sync,
UntilTZ: Clone + TimeZone + Send + Sync,
UntilTZ::Offset: Sync,
[src]
impl<TZ, UntilTZ> Job for EveryDay<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<Self::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 EveryDay<TZ, UntilTZ> where
TZ: RefUnwindSafe,
<UntilTZ as TimeZone>::Offset: RefUnwindSafe,
TZ: RefUnwindSafe,
<UntilTZ as TimeZone>::Offset: RefUnwindSafe,
impl<TZ, UntilTZ> Send for EveryDay<TZ, UntilTZ> where
<UntilTZ as TimeZone>::Offset: Send,
<UntilTZ as TimeZone>::Offset: Send,
impl<TZ, UntilTZ> Sync for EveryDay<TZ, UntilTZ> where
<UntilTZ as TimeZone>::Offset: Sync,
<UntilTZ as TimeZone>::Offset: Sync,
impl<TZ, UntilTZ> Unpin for EveryDay<TZ, UntilTZ> where
TZ: Unpin,
<UntilTZ as TimeZone>::Offset: Unpin,
TZ: Unpin,
<UntilTZ as TimeZone>::Offset: Unpin,
impl<TZ, UntilTZ> UnwindSafe for EveryDay<TZ, UntilTZ> where
TZ: UnwindSafe,
<UntilTZ as TimeZone>::Offset: UnwindSafe,
TZ: UnwindSafe,
<UntilTZ as TimeZone>::Offset: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more