pub enum EventAvailability {
NotSupported,
Busy,
Free,
Tentative,
Unavailable,
}Expand description
Event availability for scheduling.
Variants§
Implementations§
Source§impl EventAvailability
impl EventAvailability
Sourcepub fn to_ek(self) -> EKEventAvailability
pub fn to_ek(self) -> EKEventAvailability
Convert to the raw EKEventAvailability for writing.
Sourcepub fn from_ek(raw: EKEventAvailability) -> Self
pub fn from_ek(raw: EKEventAvailability) -> Self
Map an EKEventAvailability back to our enum. Unknown raw values
(future Apple additions) fall back to NotSupported.
Trait Implementations§
Source§impl Clone for EventAvailability
impl Clone for EventAvailability
Source§fn clone(&self) -> EventAvailability
fn clone(&self) -> EventAvailability
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 EventAvailability
impl Debug for EventAvailability
Source§impl Default for EventAvailability
impl Default for EventAvailability
Source§fn default() -> EventAvailability
fn default() -> EventAvailability
Returns the “default value” for a type. Read more
Source§impl PartialEq for EventAvailability
impl PartialEq for EventAvailability
Source§fn eq(&self, other: &EventAvailability) -> bool
fn eq(&self, other: &EventAvailability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for EventAvailability
impl Eq for EventAvailability
impl StructuralPartialEq for EventAvailability
Auto Trait Implementations§
impl Freeze for EventAvailability
impl RefUnwindSafe for EventAvailability
impl Send for EventAvailability
impl Sync for EventAvailability
impl Unpin for EventAvailability
impl UnsafeUnpin for EventAvailability
impl UnwindSafe for EventAvailability
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