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 { ... }
}
NSFileProviderService
only.Expand description
Provided Methods§
Sourceunsafe fn serviceName(&self) -> Retained<NSFileProviderServiceName>
unsafe fn serviceName(&self) -> Retained<NSFileProviderServiceName>
The service name that uniquely identifies the service (using reverse domain name notation for you service name is recommended).
Sourceunsafe fn makeListenerEndpointAndReturnError(
&self,
) -> Result<Retained<NSXPCListenerEndpoint>, Retained<NSError>>
unsafe fn makeListenerEndpointAndReturnError( &self, ) -> Result<Retained<NSXPCListenerEndpoint>, Retained<NSError>>
Return an endpoint object to allow the client application to connect to the
file provider.
The endpoint is retrieved from an anonymous
NSXPCListener
that the file
provider creates. The file provider is in charge of accepting incoming
NSXPCConnection's
via
-[NSXPCListenerDelegate
listener: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).
Sourceunsafe fn isRestricted(&self) -> bool
unsafe fn isRestricted(&self) -> bool
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:]