pub unsafe trait NSFileProviderTestingCollisionResolution: NSFileProviderTestingOperation {
// Provided methods
unsafe fn side(&self) -> NSFileProviderTestingOperationSide
where Self: Sized + Message { ... }
unsafe fn renamedItem(&self) -> Retained<NSFileProviderItem>
where Self: Sized + Message { ... }
}
Available on crate feature
NSFileProviderTesting
only.Expand description
This operation causes the system to resolve a collision by rename a colliding item.
In case two items claim the same disk location because the have the same parent and filename, the system will choose to rename one of those items away from that location. The renamed item will have the same parent, but a slightly modified name (for instance “a.txt” will be renamed to “a 2.txt”).
This can for instance happen if the case sensitivity of the local filesystem and of the provider differs.
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn side(&self) -> NSFileProviderTestingOperationSide
unsafe fn side(&self) -> NSFileProviderTestingOperationSide
The side of the operation.
Sourceunsafe fn renamedItem(&self) -> Retained<NSFileProviderItem>
Available on crate feature NSFileProviderItem
only.
unsafe fn renamedItem(&self) -> Retained<NSFileProviderItem>
NSFileProviderItem
only.The state of the item.