#[repr(transparent)]pub struct HMPresenceEventType(pub NSUInteger);Available on crate feature
HMPresenceEventDefines only.Expand description
This enumeration describes the different types of presence events.
See also Apple’s documentation
Tuple Fields§
§0: NSUIntegerImplementations§
Source§impl HMPresenceEventType
impl HMPresenceEventType
Sourcepub const EveryEntry: Self
pub const EveryEntry: Self
This corresponds to trigger an event for every user entering a home. This cannot be added as predicate.
Sourcepub const EveryExit: Self
pub const EveryExit: Self
This corresponds to trigger an event for every user exiting a home. This cannot be added as predicate.
Sourcepub const FirstEntry: Self
pub const FirstEntry: Self
This corresponds to trigger an event for the first user entering a home.
Sourcepub const LastExit: Self
pub const LastExit: Self
This corresponds to trigger an event for the last user exiting a home.
Trait Implementations§
Source§impl Clone for HMPresenceEventType
impl Clone for HMPresenceEventType
Source§fn clone(&self) -> HMPresenceEventType
fn clone(&self) -> HMPresenceEventType
Returns a copy 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 moreSource§impl Debug for HMPresenceEventType
impl Debug for HMPresenceEventType
Source§impl Encode for HMPresenceEventType
impl Encode for HMPresenceEventType
Source§impl Hash for HMPresenceEventType
impl Hash for HMPresenceEventType
Source§impl Ord for HMPresenceEventType
impl Ord for HMPresenceEventType
Source§fn cmp(&self, other: &HMPresenceEventType) -> Ordering
fn cmp(&self, other: &HMPresenceEventType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HMPresenceEventType
impl PartialEq for HMPresenceEventType
Source§impl PartialOrd for HMPresenceEventType
impl PartialOrd for HMPresenceEventType
Source§impl RefEncode for HMPresenceEventType
impl RefEncode for HMPresenceEventType
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for HMPresenceEventType
impl Eq for HMPresenceEventType
impl StructuralPartialEq for HMPresenceEventType
Auto Trait Implementations§
impl Freeze for HMPresenceEventType
impl RefUnwindSafe for HMPresenceEventType
impl Send for HMPresenceEventType
impl Sync for HMPresenceEventType
impl Unpin for HMPresenceEventType
impl UnwindSafe for HMPresenceEventType
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> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.