NSFileProviderServiceSource

Trait NSFileProviderServiceSource 

Source
pub unsafe trait NSFileProviderServiceSource {
    // Provided methods
    unsafe fn serviceName(&self) -> Retained<NSFileProviderServiceName>
       where Self: Sized + Message { ... }
    unsafe fn makeListenerEndpointAndReturnError(
        &self,
    ) -> Result<Retained<NSXPCListenerEndpoint>, Retained<NSError>>
       where Self: Sized + Message { ... }
    unsafe fn isRestricted(&self) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature NSFileProviderService only.
Expand description

Provided Methods§

Source

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

The service name that uniquely identifies the service (using reverse domain name notation for you service name is recommended).

Source

unsafe fn makeListenerEndpointAndReturnError( &self, ) -> Result<Retained<NSXPCListenerEndpoint>, Retained<NSError>>
where Self: Sized + Message,

Return an endpoint object to allow the client application to connect to the file provider. The endpoint is retrieved from an anonymous NSXPCListenerthat the file provider creates. The file provider is in charge of accepting incoming NSXPCConnection'svia -[NSXPCListenerDelegatelistener:shouldAcceptNewConnection:], and setting up properties on the new connection, like its exported object and interfaces (that both the file provider and the client application have agreed on).

Source

unsafe fn isRestricted(&self) -> bool
where Self: Sized + Message,

Indicates whether access to the service is restricted.

A restricted service can only be accessed by processes that can manage the domain the service is attached to. It is only accessible through -[NSFileProviderManager getServiceWithName:itemIdentifier:completionHandler:]

Trait Implementations§

Source§

impl ProtocolType for dyn NSFileProviderServiceSource

Source§

const NAME: &'static str = "NSFileProviderServiceSource"

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 NSFileProviderServiceSource

Implementations on Foreign Types§

Source§

impl<T> NSFileProviderServiceSource for ProtocolObject<T>

Implementors§