#[repr(transparent)]pub struct CKSyncEngineAccountChangeType(pub NSInteger);Available on crate feature
CKSyncEngineEvent only.Expand description
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl CKSyncEngineAccountChangeType
impl CKSyncEngineAccountChangeType
Sourcepub const SignIn: Self
pub const SignIn: Self
The user signed in to an account.
If you already have data stored locally, you have a few options:
- Merge the local data with the newly-signed-in account’s data.
- Keep the local data separate from cloud-synced data (e.g. a separate “local account”).
- Delete the local data.
- Prompt the user to make the decision.
Sourcepub const SignOut: Self
pub const SignOut: Self
The user signed out of their account.
You should delete any locally-stored data for the previous account.
Sourcepub const SwitchAccounts: Self
pub const SwitchAccounts: Self
The user switched from one account to another. This might happen if the user signs out and in to a new account while your application is quit.
You should delete any locally-stored data for the previous account.
Trait Implementations§
Source§impl Clone for CKSyncEngineAccountChangeType
impl Clone for CKSyncEngineAccountChangeType
Source§fn clone(&self) -> CKSyncEngineAccountChangeType
fn clone(&self) -> CKSyncEngineAccountChangeType
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 Hash for CKSyncEngineAccountChangeType
impl Hash for CKSyncEngineAccountChangeType
Source§impl Ord for CKSyncEngineAccountChangeType
impl Ord for CKSyncEngineAccountChangeType
Source§fn cmp(&self, other: &CKSyncEngineAccountChangeType) -> Ordering
fn cmp(&self, other: &CKSyncEngineAccountChangeType) -> 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 CKSyncEngineAccountChangeType
impl PartialEq for CKSyncEngineAccountChangeType
Source§fn eq(&self, other: &CKSyncEngineAccountChangeType) -> bool
fn eq(&self, other: &CKSyncEngineAccountChangeType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CKSyncEngineAccountChangeType
impl PartialOrd for CKSyncEngineAccountChangeType
Source§impl RefEncode for CKSyncEngineAccountChangeType
impl RefEncode for CKSyncEngineAccountChangeType
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 CKSyncEngineAccountChangeType
impl Eq for CKSyncEngineAccountChangeType
impl StructuralPartialEq for CKSyncEngineAccountChangeType
Auto Trait Implementations§
impl Freeze for CKSyncEngineAccountChangeType
impl RefUnwindSafe for CKSyncEngineAccountChangeType
impl Send for CKSyncEngineAccountChangeType
impl Sync for CKSyncEngineAccountChangeType
impl Unpin for CKSyncEngineAccountChangeType
impl UnwindSafe for CKSyncEngineAccountChangeType
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.