#[repr(transparent)]pub struct CKErrorCode(pub NSInteger);CKError only.Expand description
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl CKErrorCode
impl CKErrorCode
Sourcepub const InternalError: Self
pub const InternalError: Self
CloudKit.framework encountered an error. This is a non-recoverable error.
Sourcepub const PartialFailure: Self
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
Network not available
Sourcepub const NetworkFailure: Self
pub const NetworkFailure: Self
Network error (available but CFNetwork gave us an error)
Sourcepub const BadContainer: Self
pub const BadContainer: Self
Un-provisioned or unauthorized container. Try provisioning the container before retrying the operation.
Service unavailable
Sourcepub const RequestRateLimited: Self
pub const RequestRateLimited: Self
Client is being rate limited
Sourcepub const MissingEntitlement: Self
pub const MissingEntitlement: Self
Missing entitlement
Sourcepub const NotAuthenticated: Self
pub const NotAuthenticated: Self
Not authenticated (writing without being logged in, no user record)
Sourcepub const PermissionFailure: Self
pub const PermissionFailure: Self
Access failure (save, fetch, or shareAccept)
Sourcepub const UnknownItem: Self
pub const UnknownItem: Self
Record does not exist
Sourcepub const InvalidArguments: Self
pub const InvalidArguments: Self
Bad client request (bad record graph, malformed predicate)
Sourcepub const ResultsTruncated: Self
👎Deprecated: Will not be returned
pub const ResultsTruncated: Self
Bad client request (bad record graph, malformed predicate)
Sourcepub const ServerRecordChanged: Self
pub const ServerRecordChanged: Self
The record was rejected because the version on the server was different
Sourcepub const ServerRejectedRequest: Self
pub const ServerRejectedRequest: Self
The server rejected this request. This is a non-recoverable error
Sourcepub const AssetFileNotFound: Self
pub const AssetFileNotFound: Self
Asset file was not found
Sourcepub const AssetFileModified: Self
pub const AssetFileModified: Self
Asset file content was modified while being saved
Sourcepub const IncompatibleVersion: Self
pub const IncompatibleVersion: Self
App version is less than the minimum allowed version
Sourcepub const ConstraintViolation: Self
pub const ConstraintViolation: Self
The server rejected the request because there was a conflict with a unique field.
Sourcepub const OperationCancelled: Self
pub const OperationCancelled: Self
A CKOperation was explicitly cancelled
Sourcepub const ChangeTokenExpired: Self
pub const ChangeTokenExpired: Self
The previousServerChangeToken value is too old and the client must re-sync from scratch
Sourcepub const BatchRequestFailed: Self
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.
Sourcepub const ZoneBusy: Self
pub const ZoneBusy: Self
The server is too busy to handle this zone operation. Try the operation again in a few seconds.
Sourcepub const BadDatabase: Self
pub const BadDatabase: Self
Operation could not be completed on the given database. Likely caused by attempting to modify zones in the public database.
Sourcepub const QuotaExceeded: Self
pub const QuotaExceeded: Self
Saving a record would exceed quota
Sourcepub const ZoneNotFound: Self
pub const ZoneNotFound: Self
The specified zone does not exist on the server
Sourcepub const LimitExceeded: Self
pub const LimitExceeded: Self
The request to the server was too large. Retry this request as a smaller batch.
Sourcepub const UserDeletedZone: Self
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.
Sourcepub const TooManyParticipants: Self
pub const TooManyParticipants: Self
A share cannot be saved because there are too many participants attached to the share
A record/share cannot be saved, doing so would cause a hierarchy of records to exist in multiple shares
Sourcepub const ReferenceViolation: Self
pub const ReferenceViolation: Self
The target of a record’s parent or share reference was not found
Sourcepub const ManagedAccountRestricted: Self
pub const ManagedAccountRestricted: Self
Request was rejected due to a managed account restriction
Sourcepub const ParticipantMayNeedVerification: Self
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.
Sourcepub const ServerResponseLost: Self
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.
Sourcepub const AssetNotAvailable: Self
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.
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.
Sourcepub const ParticipantAlreadyInvited: Self
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
impl Clone for CKErrorCode
Source§fn clone(&self) -> CKErrorCode
fn clone(&self) -> CKErrorCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more