Struct oni_comb_crond_rs::CronSchedule

source ·
pub struct CronSchedule<Tz>
where Tz: TimeZone,
{ /* private fields */ }
Expand description

Facade that returns a CronInterval or CronIntervalIterator from a CROND string.
CROND文字列からCronIntervalやCronIntervalIteratorを返すFacade。

Implementations§

source§

impl<Tz: TimeZone> CronSchedule<Tz>

source

pub fn new(crond_string: &str) -> Result<Self, String>

The Factory method. ファクトリメソッド.

§Arguments(引数)
  • crond_string - CROND形式文字列
§Retun values(戻り値)
  • Err:
    • if CrondParser::parse fails
    • CrondParser::parseに失敗した場合
  • Ok
    • if CrondParser::parse succeeds
    • CrondParser::parseに成功した場合
source

pub fn cron_interval( &self, start: DateTime<Tz> ) -> CronInterval<Tz, CronSpecification>

Returns a CronInterval with date and time candidates after the start date and time.
開始日時以降の日時候補を持つCronIntervalを返す。

source

pub fn upcoming( &self, start: DateTime<Tz> ) -> CronIntervalIterator<Tz, CronSpecification>

Returns a CronIntervalIterator with the date and time candidates after the start date and time.
開始日時以降の日時候補を持つCronIntervalIteratorを返す。

Auto Trait Implementations§

§

impl<Tz> Freeze for CronSchedule<Tz>

§

impl<Tz> RefUnwindSafe for CronSchedule<Tz>
where Tz: RefUnwindSafe,

§

impl<Tz> Send for CronSchedule<Tz>
where Tz: Send,

§

impl<Tz> Sync for CronSchedule<Tz>
where Tz: Sync,

§

impl<Tz> Unpin for CronSchedule<Tz>
where Tz: Unpin,

§

impl<Tz> UnwindSafe for CronSchedule<Tz>
where Tz: UnwindSafe,

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> 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, U> TryFrom<U> for T
where U: Into<T>,

§

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>,

§

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.