#[repr(transparent)]pub struct NSFileProviderErrorCode(pub NSInteger);
NSFileProviderError
only.Expand description
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl NSFileProviderErrorCode
impl NSFileProviderErrorCode
Sourcepub const NotAuthenticated: Self
pub const NotAuthenticated: Self
The user credentials cannot be verified
Sourcepub const FilenameCollision: Self
pub const FilenameCollision: Self
An item already exists with the same parentItemIdentifier and filename (or with a filename differing only in case.)
Note: Please use -[NSError (NSFileProviderError) fileProviderErrorForCollisionWithItem:] to build an error with this code.
See: -[NSError (NSFileProviderError) fileProviderErrorForCollisionWithItem:]
Sourcepub const SyncAnchorExpired: Self
pub const SyncAnchorExpired: Self
The value of the sync anchor is too old, and the system must re-sync from scratch
Sourcepub const PageExpired: Self
pub const PageExpired: Self
The value of the page token is too old, and the system must re-sync from scratch
Sourcepub const InsufficientQuota: Self
pub const InsufficientQuota: Self
The item has not been uploaded because it would push the account over quota
Sourcepub const ServerUnreachable: Self
pub const ServerUnreachable: Self
Connecting to the servers failed
Sourcepub const NoSuchItem: Self
pub const NoSuchItem: Self
The requested item doesn’t exist
Note: Please use -[NSError (NSFileProviderError) fileProviderErrorForNonExistentItemWithIdentifier:] to build an error with this code.
See: -[NSError (NSFileProviderError) fileProviderErrorForNonExistentItemWithIdentifier:]
Sourcepub const DeletionRejected: Self
pub const DeletionRejected: Self
The provider disallowed the deletion of the item.
Note: Please use -[NSError (NSFileProviderError) fileProviderErrorForRejectedDeletionOfItem:] to build an error with this code.
See: -[NSError (NSFileProviderError) fileProviderErrorForRejectedDeletionOfItem:]
Sourcepub const DirectoryNotEmpty: Self
pub const DirectoryNotEmpty: Self
We’re trying to non-recursively delete a non-empty directory
Sourcepub const ProviderNotFound: Self
pub const ProviderNotFound: Self
Returned by NSFileProviderManager if no provider could be found in the application
Sourcepub const ProviderTranslocated: Self
pub const ProviderTranslocated: Self
Returned by NSFileProviderManager if the application’s provider has been disabled due to app translocation
Sourcepub const OlderExtensionVersionRunning: Self
pub const OlderExtensionVersionRunning: Self
Returned by NSFileProviderManager if the provider registered in the system is an older version than the one corresponding to this app.
The NSFilePathErrorKey
key points to the location of the older version. If the location of the older version cannot be determined (e.g. because it was since deleted), the NSFilePathErrorKey
will not be set.
Sourcepub const NewerExtensionVersionFound: Self
pub const NewerExtensionVersionFound: Self
Returned by NSFileProviderManager if the provider registered in the system is a newer version than the one corresponding to this app.
Sourcepub const CannotSynchronize: Self
pub const CannotSynchronize: Self
Indicates that synchronization cannot happen.
This error can be returned by the provider or the system.
This is returned by NSFileProviderManager if a barrier failed for a sync-related error.
If the failure is caused by a specific item, the system will set the NSFileProviderErrorItemKey to the corresponding item identifier and the NSUnderlyingErrorKey will be set to the error encountered by that item.
When a provider returns this error on createItem or updateItem, it means that syncing that item is definitively broken. The system will not retry syncing those items, until either: The operating system has been updated. The FileProvider extension has been updated. The item is modified on disk.
Sourcepub const NonEvictableChildren: Self
pub const NonEvictableChildren: Self
Returned by NSFileProviderManager if directory eviction failed because the target contains non-evictable items.
-[NSError underlyingErrors] is set to an array of the underlying errors. Each one has NSURLErrorKey set to identify the particular file or directory affected by this error. The number of reported failing items is capped to an implementation-defined number.
- domain: NSFileProviderErrorDomain errorCode: NSFileProviderErrorUnsyncedEdits error: if the item had unsynced content.
- domain: NSFileProviderErrorDomain errorCode: NSFileProviderErrorNonEvictable error: if the item has been marked as non-purgeable by the provider.
- domain: NSPOSIXErrorDomain errorCode: EBUSY - if the item had open file descriptors on it.
- domain: NSPOSIXErrorDomain errorCode: EMLINK : if the item had several hardlinks.
Sourcepub const UnsyncedEdits: Self
pub const UnsyncedEdits: Self
Returned by NSFileProviderManager if item eviction is failing because the item has edits that have not been synced yet
The NSURLErrorKey will be set to with the item URL that has unsynced content.
Sourcepub const NonEvictable: Self
pub const NonEvictable: Self
Returned by NSFileProviderManager if item eviction is failing because the item has not been assigned the evictable capability.
The NSURLErrorKey will be set to with the corresponding item URL.
Sourcepub const VersionNoLongerAvailable: Self
pub const VersionNoLongerAvailable: Self
Returned by the provider to indicate that the requested version for an item cannot be provided.
When a provider returns that error, it means the version for this item is definitively unavailable. It is intended to be returned by fetchPartialContentsForItemWithIdentifier, when NSFileProviderFetchContentsOptionsStrictVersioning is set, to tell the system that a remote update happened to the item that outdated the requested version.
Sourcepub const ExcludedFromSync: Self
pub const ExcludedFromSync: Self
Returned by createItemBasedOnTemplate or modifyItem if the provider does not wish to sync the item.
When a provider returns this error, it causes the item to be excluded from sync. The system will ensure that the item (and any descendents, in case of a directory), are downloaded, and then issue a deleteItem call to the provider for the item.
The system will call createItemBasedOnTemplate for the item, whenever the item’s metadata changes on disk. This ensures that the provider’s rules for excluding from sync are re-evaluated whenever the item’s properties change.
§Re-evaluating items
If the provider wishes for previously excluded items to be re-sent as createItemBasedOnTemplate calls, the provider may call -[NSFileProviderManager signalErrorResolved:completionHandler:] with this error code.
If the provider wishes to exclude items which had previously been synced, the provider may call -[NSFileProviderManager requestModificationOfFields:forItemWithIdentifier:options:completionHandler:]. This will cause the system to send a new modifyItem call to the provider. At that time, the provider can choose to return this error code.
Sourcepub const DomainDisabled: Self
pub const DomainDisabled: Self
Returned by createItemBasedOnTemplate or modifyItem if the provider does not wish to sync the item.
When a provider returns this error, it causes the item to be excluded from sync. The system will ensure that the item (and any descendents, in case of a directory), are downloaded, and then issue a deleteItem call to the provider for the item.
The system will call createItemBasedOnTemplate for the item, whenever the item’s metadata changes on disk. This ensures that the provider’s rules for excluding from sync are re-evaluated whenever the item’s properties change.
§Re-evaluating items
If the provider wishes for previously excluded items to be re-sent as createItemBasedOnTemplate calls, the provider may call -[NSFileProviderManager signalErrorResolved:completionHandler:] with this error code.
If the provider wishes to exclude items which had previously been synced, the provider may call -[NSFileProviderManager requestModificationOfFields:forItemWithIdentifier:options:completionHandler:]. This will cause the system to send a new modifyItem call to the provider. At that time, the provider can choose to return this error code.
Returned by createItemBasedOnTemplate or modifyItem if the provider does not wish to sync the item.
When a provider returns this error, it causes the item to be excluded from sync. The system will ensure that the item (and any descendents, in case of a directory), are downloaded, and then issue a deleteItem call to the provider for the item.
The system will call createItemBasedOnTemplate for the item, whenever the item’s metadata changes on disk. This ensures that the provider’s rules for excluding from sync are re-evaluated whenever the item’s properties change.
§Re-evaluating items
If the provider wishes for previously excluded items to be re-sent as createItemBasedOnTemplate calls, the provider may call -[NSFileProviderManager signalErrorResolved:completionHandler:] with this error code.
If the provider wishes to exclude items which had previously been synced, the provider may call -[NSFileProviderManager requestModificationOfFields:forItemWithIdentifier:options:completionHandler:]. This will cause the system to send a new modifyItem call to the provider. At that time, the provider can choose to return this error code.
Sourcepub const ProviderDomainNotFound: Self
pub const ProviderDomainNotFound: Self
Returned by createItemBasedOnTemplate or modifyItem if the provider does not wish to sync the item.
When a provider returns this error, it causes the item to be excluded from sync. The system will ensure that the item (and any descendents, in case of a directory), are downloaded, and then issue a deleteItem call to the provider for the item.
The system will call createItemBasedOnTemplate for the item, whenever the item’s metadata changes on disk. This ensures that the provider’s rules for excluding from sync are re-evaluated whenever the item’s properties change.
§Re-evaluating items
If the provider wishes for previously excluded items to be re-sent as createItemBasedOnTemplate calls, the provider may call -[NSFileProviderManager signalErrorResolved:completionHandler:] with this error code.
If the provider wishes to exclude items which had previously been synced, the provider may call -[NSFileProviderManager requestModificationOfFields:forItemWithIdentifier:options:completionHandler:]. This will cause the system to send a new modifyItem call to the provider. At that time, the provider can choose to return this error code.
Sourcepub const ApplicationExtensionNotFound: Self
pub const ApplicationExtensionNotFound: Self
Returned by createItemBasedOnTemplate or modifyItem if the provider does not wish to sync the item.
When a provider returns this error, it causes the item to be excluded from sync. The system will ensure that the item (and any descendents, in case of a directory), are downloaded, and then issue a deleteItem call to the provider for the item.
The system will call createItemBasedOnTemplate for the item, whenever the item’s metadata changes on disk. This ensures that the provider’s rules for excluding from sync are re-evaluated whenever the item’s properties change.
§Re-evaluating items
If the provider wishes for previously excluded items to be re-sent as createItemBasedOnTemplate calls, the provider may call -[NSFileProviderManager signalErrorResolved:completionHandler:] with this error code.
If the provider wishes to exclude items which had previously been synced, the provider may call -[NSFileProviderManager requestModificationOfFields:forItemWithIdentifier:options:completionHandler:]. This will cause the system to send a new modifyItem call to the provider. At that time, the provider can choose to return this error code.
Trait Implementations§
Source§impl Clone for NSFileProviderErrorCode
impl Clone for NSFileProviderErrorCode
Source§fn clone(&self) -> NSFileProviderErrorCode
fn clone(&self) -> NSFileProviderErrorCode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more