NSFileProviderIncrementalContentFetching

Trait NSFileProviderIncrementalContentFetching 

Source
pub unsafe trait NSFileProviderIncrementalContentFetching: NSObjectProtocol {
    // Provided method
    unsafe fn fetchContentsForItemWithIdentifier_version_usingExistingContentsAtURL_existingVersion_request_completionHandler(
        &self,
        item_identifier: &NSFileProviderItemIdentifier,
        requested_version: Option<&NSFileProviderItemVersion>,
        existing_contents: &NSURL,
        existing_version: &NSFileProviderItemVersion,
        request: &NSFileProviderRequest,
        completion_handler: &DynBlock<dyn Fn(*mut NSURL, *mut NSFileProviderItem, *mut NSError)>,
    ) -> Retained<NSProgress>
       where Self: Sized + Message { ... }
}
Available on crate feature NSFileProviderReplicatedExtension only.
Expand description

Protocol to implement if the provider instance supports fetching incremental content changes.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn fetchContentsForItemWithIdentifier_version_usingExistingContentsAtURL_existingVersion_request_completionHandler( &self, item_identifier: &NSFileProviderItemIdentifier, requested_version: Option<&NSFileProviderItemVersion>, existing_contents: &NSURL, existing_version: &NSFileProviderItemVersion, request: &NSFileProviderRequest, completion_handler: &DynBlock<dyn Fn(*mut NSURL, *mut NSFileProviderItem, *mut NSError)>, ) -> Retained<NSProgress>
where Self: Sized + Message,

Available on crate features NSFileProviderItem and NSFileProviderRequest and block2 only.

Update a previously provided item to a new version.

If the system already has a version of an item and learns that a new version is available, it may call this method to update the existing version to a new version.

The semantics of the requestedVersion parameter are the same as for the non-delta update method above.

Trait Implementations§

Source§

impl ProtocolType for dyn NSFileProviderIncrementalContentFetching

Source§

const NAME: &'static str = "NSFileProviderIncrementalContentFetching"

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 NSFileProviderIncrementalContentFetching

Implementations on Foreign Types§

Source§

impl<T> NSFileProviderIncrementalContentFetching for ProtocolObject<T>

Implementors§