Struct CronSchedule

Source
pub struct CronSchedule { /* private fields */ }

Implementations§

Source§

impl CronSchedule

Source

pub const fn new() -> Self

Creates a blank cron schedule (equivalent to * * * * *)

Source

pub const fn add_minute(&mut self, minute: u64)

Source

pub const fn add_minute_range(&mut self, e1: u64, e2: u64)

Source

pub const fn add_minute_step(&mut self, step: u64)

Source

pub const fn add_minute_range_step(&mut self, e1: u64, e2: u64, step: u64)

Source

pub const fn add_hour(&mut self, hour: u64)

Source

pub const fn add_hour_range(&mut self, e1: u64, e2: u64)

Source

pub const fn add_hour_step(&mut self, step: u64)

Source

pub const fn add_hour_range_step(&mut self, e1: u64, e2: u64, step: u64)

Source

pub const fn add_day_of_month(&mut self, day_of_month: u64)

Source

pub const fn add_day_of_month_range(&mut self, e1: u64, e2: u64)

Source

pub const fn add_day_of_month_step(&mut self, step: u64)

Source

pub const fn add_day_of_month_range_step(&mut self, e1: u64, e2: u64, step: u64)

Source

pub const fn add_month(&mut self, month: u64)

Source

pub const fn add_month_range(&mut self, e1: u64, e2: u64)

Source

pub const fn add_month_step(&mut self, step: u64)

Source

pub const fn add_month_range_step(&mut self, e1: u64, e2: u64, step: u64)

Source

pub const fn add_day_of_week(&mut self, day_of_week: u64)

Source

pub const fn add_day_of_week_range(&mut self, e1: u64, e2: u64)

Source

pub const fn add_day_of_week_step(&mut self, step: u64)

Source

pub const fn add_day_of_week_range_step(&mut self, e1: u64, e2: u64, step: u64)

Source

pub const fn preset_every_minute() -> Self

Source

pub const fn preset_every_1_minute() -> Self

Source

pub const fn preset_every_2_minutes() -> Self

Source

pub const fn preset_every_even_minute() -> Self

Source

pub const fn preset_every_uneven_minute() -> Self

Source

pub const fn preset_every_3_minutes() -> Self

Source

pub const fn preset_every_4_minutes() -> Self

Source

pub const fn preset_every_5_minutes() -> Self

Source

pub const fn preset_every_five_minutes() -> Self

Source

pub const fn preset_every_6_minutes() -> Self

Source

pub const fn preset_every_10_minutes() -> Self

Source

pub const fn preset_every_15_minutes() -> Self

Source

pub const fn preset_every_fifteen_minutes() -> Self

Source

pub const fn preset_every_ten_minutes() -> Self

Source

pub const fn preset_every_quarter_hour() -> Self

Source

pub const fn preset_every_20_minutes() -> Self

Source

pub const fn preset_every_30_minutes() -> Self

Source

pub const fn preset_every_hour_at_30_minutes() -> Self

Source

pub const fn preset_every_half_hour() -> Self

Source

pub const fn preset_every_60_minutes() -> Self

Source

pub const fn preset_every_hour() -> Self

Source

pub const fn preset_every_1_hour() -> Self

Source

pub const fn preset_every_2_hours() -> Self

Source

pub const fn preset_every_two_hours() -> Self

Source

pub const fn preset_every_even_hour() -> Self

Source

pub const fn preset_every_other_hour() -> Self

Source

pub const fn preset_every_3_hours() -> Self

Source

pub const fn preset_every_three_hours() -> Self

Source

pub const fn preset_every_4_hours() -> Self

Source

pub const fn preset_every_6_hours() -> Self

Source

pub const fn preset_every_six_hours() -> Self

Source

pub const fn preset_every_8_hours() -> Self

Source

pub const fn preset_every_12_hours() -> Self

Source

pub const fn preset_hour_range(start: u64, end: u64) -> Self

Source

pub const fn preset_between_certain_hours(start: u64, end: u64) -> Self

Source

pub const fn preset_every_day() -> Self

Source

pub const fn preset_daily() -> Self

Source

pub const fn preset_once_a_day() -> Self

Source

pub const fn preset_every_night() -> Self

Source

pub const fn preset_every_day_at_0100() -> Self

Source

pub const fn preset_every_day_at_0200() -> Self

Source

pub const fn preset_every_day_at_0800() -> Self

Source

pub const fn preset_every_morning() -> Self

Source

pub const fn preset_every_midnight() -> Self

Source

pub const fn preset_every_day_at_midnight() -> Self

Source

pub const fn preset_every_night_at_midnight() -> Self

Source

pub const fn preset_every_sunday() -> Self

Source

pub const fn preset_every_monday() -> Self

Source

pub const fn preset_every_tuesday() -> Self

Source

pub const fn preset_every_wednesday() -> Self

Source

pub const fn preset_every_thursday() -> Self

Source

pub const fn preset_every_friday() -> Self

Source

pub const fn preset_every_friday_at_midnight() -> Self

Source

pub const fn preset_every_saturday() -> Self

Source

pub const fn preset_every_weekday() -> Self

Source

pub const fn preset_weekdays_only() -> Self

Source

pub const fn preset_monday_to_friday() -> Self

Source

pub const fn preset_every_weekend() -> Self

Source

pub const fn preset_weekends_only() -> Self

Source

pub const fn preset_every_7_days() -> Self

Source

pub const fn preset_every_week() -> Self

Source

pub const fn preset_weekly() -> Self

Source

pub const fn preset_once_a_week() -> Self

Source

pub const fn preset_every_month() -> Self

Source

pub const fn preset_monthly() -> Self

Source

pub const fn preset_once_a_month() -> Self

Source

pub const fn preset_every_other_month() -> Self

Source

pub const fn preset_every_quarter() -> Self

Source

pub const fn preset_every_6_months() -> Self

Source

pub const fn preset_every_year() -> Self

Trait Implementations§

Source§

impl Clone for CronSchedule

Source§

fn clone(&self) -> CronSchedule

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for CronSchedule

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ChainInner for T

Source§

fn from_chain(chain: Chain<Self>) -> Self

Source§

fn into_chain(self) -> Chain<Self>

Source§

fn chain_mut(&mut self) -> Chain<&mut Self>

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> Encode for T

Source§

fn encode<E>(self) -> <E as Encoding>::EncodeOutput
where T: Encodable<E>, E: Encoding,

Source§

fn decode<E>(self) -> <E as Encoding>::DecodeOutput
where T: Decodable<E>, E: Encoding,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSelf for T

Source§

fn with_self(self, f: impl FnOnce(&mut Self)) -> Self

Takes ownership of the value, passing a mutable reference of it to a closure, then returning ownership of the value again