pub enum CalendarEvent {
Setup(EventData),
Created(EventData),
Updated {
event: EventData,
changed_properties: Vec<PropertyChange>,
},
Deleted(EventData),
}Expand description
Used to pass the events to the callbacks.
The types:
CalendarEvent::Setup: If the ICS Watcher is being initialized for the first time, all events that are found will be passed asCalendarEvent::SetupCalendarEvent::Created: If the ICS Watcher has been running, any new events found will be passed asCalendarEvent::CreatedCalendarEvent::Updated: Any events with different properties. The changed properties, along with both the before and after state will be passed inCalendarEvent::Updated::changed_propertiesCalendarEvent::Deleted: If an event is not found anymore, it is being passed asCalendarEvent::Deleted
Variants§
Trait Implementations§
Source§impl Clone for CalendarEvent
impl Clone for CalendarEvent
Source§fn clone(&self) -> CalendarEvent
fn clone(&self) -> CalendarEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CalendarEvent
impl RefUnwindSafe for CalendarEvent
impl Send for CalendarEvent
impl Sync for CalendarEvent
impl Unpin for CalendarEvent
impl UnwindSafe for CalendarEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more