pub struct Alarm<'a>(/* private fields */);
Expand description
The VALARM
calendar sub-component of VEVENT
and VTODO
.
An Alarm
component is a grouping of component properties that is a
reminder or alarm for an Event
or a ToDo
. For example, it may be
used to define a reminder for a pending event or an overdue to-do. (see RFC5545 3.6.6. Alarm Component)
Implementations§
Source§impl<'a> Alarm<'a>
impl<'a> Alarm<'a>
Sourcepub fn new(action: Action<'a>, trigger: Trigger<'a>) -> Self
pub fn new(action: Action<'a>, trigger: Trigger<'a>) -> Self
Creates a new VALARM
calendar component. The ACTION
and TRIGGER
properties are required.
Sourcepub fn audio(trigger: Trigger<'a>) -> Self
pub fn audio(trigger: Trigger<'a>) -> Self
Creates a new audio alarm. The TRIGGER
property is required.
Sourcepub fn display(trigger: Trigger<'a>, description: Description<'a>) -> Self
pub fn display(trigger: Trigger<'a>, description: Description<'a>) -> Self
Creates a new display alarm. The TRIGGER
and DESCRIPTION
properties
are required.
Sourcepub fn email(
trigger: Trigger<'a>,
description: Description<'a>,
summary: Summary<'a>,
) -> Self
pub fn email( trigger: Trigger<'a>, description: Description<'a>, summary: Summary<'a>, ) -> Self
Creates a new email alarm. The TRIGGER
, DESCRIPTION
and SUMMARY
properties are required.
Trait Implementations§
Source§impl<'a> Ord for Alarm<'a>
impl<'a> Ord for Alarm<'a>
Source§impl<'a> PartialOrd for Alarm<'a>
impl<'a> PartialOrd for Alarm<'a>
impl<'a> Eq for Alarm<'a>
impl<'a> StructuralPartialEq for Alarm<'a>
Auto Trait Implementations§
impl<'a> Freeze for Alarm<'a>
impl<'a> RefUnwindSafe for Alarm<'a>
impl<'a> Send for Alarm<'a>
impl<'a> Sync for Alarm<'a>
impl<'a> Unpin for Alarm<'a>
impl<'a> UnwindSafe for Alarm<'a>
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