#[repr(transparent)]pub struct WKExtendedRuntimeSessionInvalidationReason(pub NSInteger);Available on crate feature
WKExtendedRuntimeSession only.Expand description
Defines the reasons for which a session may become invalid.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl WKExtendedRuntimeSessionInvalidationReason
impl WKExtendedRuntimeSessionInvalidationReason
Sourcepub const SessionInProgress: Self
pub const SessionInProgress: Self
A session for this application has already been started, and is currently running, another session can not be started.
Sourcepub const ResignedFrontmost: Self
pub const ResignedFrontmost: Self
The application has lost frontmost status, so the session ended. Examples of actions by the user which cause the session to lose frontmost status include: User pressing digital crown, tapping on a notification to go to another application, switching applications through the dock, or any other apps entering the foreground.
Sourcepub const SuppressedBySystem: Self
pub const SuppressedBySystem: Self
Apple Watch is in a state that doesn’t currently allow this session type to run.
Trait Implementations§
Source§impl Clone for WKExtendedRuntimeSessionInvalidationReason
impl Clone for WKExtendedRuntimeSessionInvalidationReason
Source§fn clone(&self) -> WKExtendedRuntimeSessionInvalidationReason
fn clone(&self) -> WKExtendedRuntimeSessionInvalidationReason
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 moreSource§impl Ord for WKExtendedRuntimeSessionInvalidationReason
impl Ord for WKExtendedRuntimeSessionInvalidationReason
Source§fn cmp(&self, other: &WKExtendedRuntimeSessionInvalidationReason) -> Ordering
fn cmp(&self, other: &WKExtendedRuntimeSessionInvalidationReason) -> 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 WKExtendedRuntimeSessionInvalidationReason
impl PartialEq for WKExtendedRuntimeSessionInvalidationReason
Source§fn eq(&self, other: &WKExtendedRuntimeSessionInvalidationReason) -> bool
fn eq(&self, other: &WKExtendedRuntimeSessionInvalidationReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WKExtendedRuntimeSessionInvalidationReason
impl PartialOrd for WKExtendedRuntimeSessionInvalidationReason
Source§impl RefEncode for WKExtendedRuntimeSessionInvalidationReason
impl RefEncode for WKExtendedRuntimeSessionInvalidationReason
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 WKExtendedRuntimeSessionInvalidationReason
impl Eq for WKExtendedRuntimeSessionInvalidationReason
impl StructuralPartialEq for WKExtendedRuntimeSessionInvalidationReason
Auto Trait Implementations§
impl Freeze for WKExtendedRuntimeSessionInvalidationReason
impl RefUnwindSafe for WKExtendedRuntimeSessionInvalidationReason
impl Send for WKExtendedRuntimeSessionInvalidationReason
impl Sync for WKExtendedRuntimeSessionInvalidationReason
impl Unpin for WKExtendedRuntimeSessionInvalidationReason
impl UnwindSafe for WKExtendedRuntimeSessionInvalidationReason
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.