Trait NSFileProviderTestingCollisionResolution

Source
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§

Source

unsafe fn side(&self) -> NSFileProviderTestingOperationSide
where Self: Sized + Message,

The side of the operation.

Source

unsafe fn renamedItem(&self) -> Retained<NSFileProviderItem>
where Self: Sized + Message,

Available on crate feature NSFileProviderItem only.

The state of the item.

Trait Implementations§

Source§

impl ProtocolType for dyn NSFileProviderTestingCollisionResolution

Source§

const NAME: &'static str = "NSFileProviderTestingCollisionResolution"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn NSFileProviderTestingCollisionResolution

Implementations on Foreign Types§

Source§

impl<T> NSFileProviderTestingCollisionResolution for ProtocolObject<T>

Implementors§