CKErrorCode

Struct CKErrorCode 

Source
#[repr(transparent)]
pub struct CKErrorCode(pub NSInteger);
Available on crate feature CKError only.
Expand description

Tuple Fields§

§0: NSInteger

Implementations§

Source§

impl CKErrorCode

Source

pub const InternalError: Self

CloudKit.framework encountered an error. This is a non-recoverable error.

Source

pub const PartialFailure: Self

Some items failed, but the operation succeeded overall. Check CKPartialErrorsByItemIDKey in the userInfo dictionary for more details. This error is only returned from CKOperation completion blocks, which are deprecated in swift. It will not be returned from (swift-only) CKOperation result blocks, which are their replacements

Source

pub const NetworkUnavailable: Self

Network not available

Source

pub const NetworkFailure: Self

Network error (available but CFNetwork gave us an error)

Source

pub const BadContainer: Self

Un-provisioned or unauthorized container. Try provisioning the container before retrying the operation.

Source

pub const ServiceUnavailable: Self

Service unavailable

Source

pub const RequestRateLimited: Self

Client is being rate limited

Source

pub const MissingEntitlement: Self

Missing entitlement

Source

pub const NotAuthenticated: Self

Not authenticated (writing without being logged in, no user record)

Source

pub const PermissionFailure: Self

Access failure (save, fetch, or shareAccept)

Source

pub const UnknownItem: Self

Record does not exist

Source

pub const InvalidArguments: Self

Bad client request (bad record graph, malformed predicate)

Source

pub const ResultsTruncated: Self

👎Deprecated: Will not be returned

Bad client request (bad record graph, malformed predicate)

Source

pub const ServerRecordChanged: Self

The record was rejected because the version on the server was different

Source

pub const ServerRejectedRequest: Self

The server rejected this request. This is a non-recoverable error

Source

pub const AssetFileNotFound: Self

Asset file was not found

Source

pub const AssetFileModified: Self

Asset file content was modified while being saved

Source

pub const IncompatibleVersion: Self

App version is less than the minimum allowed version

Source

pub const ConstraintViolation: Self

The server rejected the request because there was a conflict with a unique field.

Source

pub const OperationCancelled: Self

A CKOperation was explicitly cancelled

Source

pub const ChangeTokenExpired: Self

The previousServerChangeToken value is too old and the client must re-sync from scratch

Source

pub const BatchRequestFailed: Self

One of the items in this batch operation failed in a zone with atomic updates, so the entire batch was rejected.

Source

pub const ZoneBusy: Self

The server is too busy to handle this zone operation. Try the operation again in a few seconds.

Source

pub const BadDatabase: Self

Operation could not be completed on the given database. Likely caused by attempting to modify zones in the public database.

Source

pub const QuotaExceeded: Self

Saving a record would exceed quota

Source

pub const ZoneNotFound: Self

The specified zone does not exist on the server

Source

pub const LimitExceeded: Self

The request to the server was too large. Retry this request as a smaller batch.

Source

pub const UserDeletedZone: Self

The user deleted this zone through the settings UI. Your client should either remove its local data or prompt the user before attempting to re-upload any data to this zone.

Source

pub const TooManyParticipants: Self

A share cannot be saved because there are too many participants attached to the share

Source

pub const AlreadyShared: Self

A record/share cannot be saved, doing so would cause a hierarchy of records to exist in multiple shares

Source

pub const ReferenceViolation: Self

The target of a record’s parent or share reference was not found

Source

pub const ManagedAccountRestricted: Self

Request was rejected due to a managed account restriction

Source

pub const ParticipantMayNeedVerification: Self

Share Metadata cannot be determined, because the user is not a member of the share. There are invited participants on the share with email addresses or phone numbers not associated with any iCloud account. The user may be able to join the share if they can associate one of those email addresses or phone numbers with their iCloud account via the system Share Accept UI. Call UIApplication’s openURL on this share URL to have the user attempt to verify their information.

Source

pub const ServerResponseLost: Self

The server received and processed this request, but the response was lost due to a network failure. There is no guarantee that this request succeeded. Your client should re-issue the request (if it is idempotent), or fetch data from the server to determine if the request succeeded.

Source

pub const AssetNotAvailable: Self

The file for this asset could not be accessed. It is likely your application does not have permission to open the file, or the file may be temporarily unavailable due to its data protection class. This operation can be retried after it is able to be opened in your process.

Source

pub const AccountTemporarilyUnavailable: Self

The current account is in a state that may need user intervention to recover from. The user should be directed to check the Settings app. Listen for CKAccountChangedNotifications to know when to re-check account status and retry.

Source

pub const ParticipantAlreadyInvited: Self

The user is already an invited participant on this share. They must accept the existing share invitation before continuing.

Trait Implementations§

Source§

impl Clone for CKErrorCode

Source§

fn clone(&self) -> CKErrorCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CKErrorCode

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Encode for CKErrorCode

Source§

const ENCODING: Encoding = NSInteger::ENCODING

The Objective-C type-encoding for this type.
Source§

impl Hash for CKErrorCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for CKErrorCode

Source§

fn cmp(&self, other: &CKErrorCode) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for CKErrorCode

Source§

fn eq(&self, other: &CKErrorCode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for CKErrorCode

Source§

fn partial_cmp(&self, other: &CKErrorCode) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl RefEncode for CKErrorCode

Source§

const ENCODING_REF: Encoding

The Objective-C type-encoding for a reference of this type. Read more
Source§

impl Copy for CKErrorCode

Source§

impl Eq for CKErrorCode

Source§

impl StructuralPartialEq for CKErrorCode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> EncodeArgument for T
where T: Encode,

Source§

const ENCODING_ARGUMENT: Encoding = T::ENCODING

The Objective-C type-encoding for this type.
Source§

impl<T> EncodeReturn for T
where T: Encode,

Source§

const ENCODING_RETURN: Encoding = T::ENCODING

The Objective-C type-encoding for this type.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,