Trait objc2_finder_sync::FIFinderSyncProtocol

source ·
pub unsafe trait FIFinderSyncProtocol {
    // Provided methods
    unsafe fn menuForMenuKind(
        &self,
        menu: FIMenuKind,
        mtm: MainThreadMarker
    ) -> Option<Retained<NSMenu>>
       where Self: Sized + Message { ... }
    unsafe fn beginObservingDirectoryAtURL(&self, url: &NSURL)
       where Self: Sized + Message { ... }
    unsafe fn endObservingDirectoryAtURL(&self, url: &NSURL)
       where Self: Sized + Message { ... }
    unsafe fn requestBadgeIdentifierForURL(&self, url: &NSURL)
       where Self: Sized + Message { ... }
    unsafe fn toolbarItemName(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    unsafe fn toolbarItemImage(&self) -> Retained<NSImage>
       where Self: Sized + Message { ... }
    unsafe fn toolbarItemToolTip(&self) -> Retained<NSString>
       where Self: Sized + Message { ... }
    unsafe fn supportedServiceNamesForItemWithURL(
        &self,
        item_url: &NSURL
    ) -> Retained<NSArray<NSFileProviderServiceName>>
       where Self: Sized + Message { ... }
    unsafe fn makeListenerEndpointForServiceName_itemURL_andReturnError(
        &self,
        service_name: &NSFileProviderServiceName,
        item_url: &NSURL
    ) -> Result<Retained<NSXPCListenerEndpoint>, Retained<NSError>>
       where Self: Sized + Message { ... }
    unsafe fn valuesForAttributes_forItemWithURL_completion(
        &self,
        attributes: &NSArray<NSURLResourceKey>,
        item_url: &NSURL,
        completion: &Block<dyn Fn(NonNull<NSDictionary<NSURLResourceKey, AnyObject>>, *mut NSError)>
    )
       where Self: Sized + Message { ... }
}

Provided Methods§

source

unsafe fn menuForMenuKind( &self, menu: FIMenuKind, mtm: MainThreadMarker ) -> Option<Retained<NSMenu>>
where Self: Sized + Message,

Available on crate feature objc2-app-kit only.
source

unsafe fn beginObservingDirectoryAtURL(&self, url: &NSURL)
where Self: Sized + Message,

source

unsafe fn endObservingDirectoryAtURL(&self, url: &NSURL)
where Self: Sized + Message,

source

unsafe fn requestBadgeIdentifierForURL(&self, url: &NSURL)
where Self: Sized + Message,

source

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

source

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

Available on crate feature objc2-app-kit only.
source

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

source

unsafe fn supportedServiceNamesForItemWithURL( &self, item_url: &NSURL ) -> Retained<NSArray<NSFileProviderServiceName>>
where Self: Sized + Message,

source

unsafe fn makeListenerEndpointForServiceName_itemURL_andReturnError( &self, service_name: &NSFileProviderServiceName, item_url: &NSURL ) -> Result<Retained<NSXPCListenerEndpoint>, Retained<NSError>>
where Self: Sized + Message,

source

unsafe fn valuesForAttributes_forItemWithURL_completion( &self, attributes: &NSArray<NSURLResourceKey>, item_url: &NSURL, completion: &Block<dyn Fn(NonNull<NSDictionary<NSURLResourceKey, AnyObject>>, *mut NSError)> )
where Self: Sized + Message,

Available on crate feature block2 only.

Trait Implementations§

source§

impl ProtocolType for dyn FIFinderSyncProtocol

source§

const NAME: &'static str = "FIFinderSync"

The name of the Objective-C protocol that this type represents.
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 FIFinderSyncProtocol

Implementations on Foreign Types§

source§

impl<T> FIFinderSyncProtocol for ProtocolObject<T>

Implementors§