pub enum GongEvent {
DateChanged {
new_date: NaiveDate,
},
TimeOfDay(TimeOfDay),
WorkdayMilestone(WorkdayMilestone),
Holiday {
name: String,
date: NaiveDate,
},
}Expand description
High-level, human-meaningful calendar and time-of-day events.
Variants§
DateChanged
Fired once when the calendar date changes.
TimeOfDay(TimeOfDay)
Fired at specific, named times of the day.
WorkdayMilestone(WorkdayMilestone)
Fired at specific, named workday milestones.
Holiday
Fired on a specific holiday defined in the GongConfig.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GongEvent
impl RefUnwindSafe for GongEvent
impl Send for GongEvent
impl Sync for GongEvent
impl Unpin for GongEvent
impl UnwindSafe for GongEvent
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