#[repr(transparent)]pub struct NSFileManagerUploadLocalVersionConflictPolicy(pub NSInteger);NSFileManager only.Expand description
The policies the file manager can apply to resolve conflicts when uploading a local version of a file.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl NSFileManagerUploadLocalVersionConflictPolicy
impl NSFileManagerUploadLocalVersionConflictPolicy
Sourcepub const ConflictPolicyDefault: Self
pub const ConflictPolicyDefault: Self
Resolves the conflict using the policy defined by the file provider.
Sourcepub const ConflictPolicyFailOnConflict: Self
pub const ConflictPolicyFailOnConflict: Self
Resolves the conflict by causing the upload to fail.
This policy causes an upload to fail if the local version of a file, with any local changes applied, doesn’t match the server version.
In this scenario, call FileManager/fetchLatestRemoteVersionOfItem(at:completionHandler:), rebase local changes on top of the newly fetched version, and retry the upload.
This policy is only available on paused items for which the file provider supports the fail-on-conflict behavior.
To check that the file provider supports the behavior, get the NSURLUbiquitousItemSupportedSyncControlsKey URL resource and verify that NSFileManagerSupportedSyncControls/failUploadOnConflict is true.
Trait Implementations§
Source§impl Clone for NSFileManagerUploadLocalVersionConflictPolicy
impl Clone for NSFileManagerUploadLocalVersionConflictPolicy
Source§fn clone(&self) -> NSFileManagerUploadLocalVersionConflictPolicy
fn clone(&self) -> NSFileManagerUploadLocalVersionConflictPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Ord for NSFileManagerUploadLocalVersionConflictPolicy
impl Ord for NSFileManagerUploadLocalVersionConflictPolicy
Source§fn cmp(&self, other: &NSFileManagerUploadLocalVersionConflictPolicy) -> Ordering
fn cmp(&self, other: &NSFileManagerUploadLocalVersionConflictPolicy) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for NSFileManagerUploadLocalVersionConflictPolicy
impl PartialEq for NSFileManagerUploadLocalVersionConflictPolicy
Source§fn eq(&self, other: &NSFileManagerUploadLocalVersionConflictPolicy) -> bool
fn eq(&self, other: &NSFileManagerUploadLocalVersionConflictPolicy) -> bool
self and other values to be equal, and is used by ==.