pub struct WindowedIntervalSchedule {
pub default_every: Option<Duration>,
pub windows: Vec<IntervalWindow>,
}Expand description
Interval schedule with per-window frequencies.
None means no trigger is produced while that frequency is active.
Windows are evaluated in order; the first matching window wins.
Fields§
§default_every: Option<Duration>§windows: Vec<IntervalWindow>Implementations§
Source§impl WindowedIntervalSchedule
impl WindowedIntervalSchedule
pub fn new(default_every: Option<Duration>) -> Self
pub fn with_window(self, window: JobTimeWindow, every: Option<Duration>) -> Self
Trait Implementations§
Source§impl Clone for WindowedIntervalSchedule
impl Clone for WindowedIntervalSchedule
Source§fn clone(&self) -> WindowedIntervalSchedule
fn clone(&self) -> WindowedIntervalSchedule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowedIntervalSchedule
impl Debug for WindowedIntervalSchedule
impl Eq for WindowedIntervalSchedule
Source§impl PartialEq for WindowedIntervalSchedule
impl PartialEq for WindowedIntervalSchedule
Source§fn eq(&self, other: &WindowedIntervalSchedule) -> bool
fn eq(&self, other: &WindowedIntervalSchedule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WindowedIntervalSchedule
Auto Trait Implementations§
impl Freeze for WindowedIntervalSchedule
impl RefUnwindSafe for WindowedIntervalSchedule
impl Send for WindowedIntervalSchedule
impl Sync for WindowedIntervalSchedule
impl Unpin for WindowedIntervalSchedule
impl UnsafeUnpin for WindowedIntervalSchedule
impl UnwindSafe for WindowedIntervalSchedule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more