Skip to main content

NSXPCProxyCreating

Trait NSXPCProxyCreating 

Source
pub unsafe trait NSXPCProxyCreating {
    // Provided methods
    fn remoteObjectProxy(&self) -> Retained<AnyObject>
       where Self: Sized + Message { ... }
    unsafe fn remoteObjectProxyWithErrorHandler(
        &self,
        handler: &DynBlock<dyn Fn(NonNull<NSError>)>,
    ) -> Retained<AnyObject>
       where Self: Sized + Message { ... }
    fn synchronousRemoteObjectProxyWithErrorHandler(
        &self,
        handler: &DynBlock<dyn Fn(NonNull<NSError>)>,
    ) -> Retained<AnyObject>
       where Self: Sized + Message { ... }
}
Available on crate feature NSXPCConnection only.
Expand description

Provided Methods§

Source

fn remoteObjectProxy(&self) -> Retained<AnyObject>
where Self: Sized + Message,

Source

unsafe fn remoteObjectProxyWithErrorHandler( &self, handler: &DynBlock<dyn Fn(NonNull<NSError>)>, ) -> Retained<AnyObject>
where Self: Sized + Message,

Available on crate features block2 and NSError only.
§Safety

handler block must be sendable.

Source

fn synchronousRemoteObjectProxyWithErrorHandler( &self, handler: &DynBlock<dyn Fn(NonNull<NSError>)>, ) -> Retained<AnyObject>
where Self: Sized + Message,

Available on crate features block2 and NSError only.

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSXPCProxyCreating

Source§

impl ProtocolType for dyn NSXPCProxyCreating

Source§

const NAME: &'static str = "NSXPCProxyCreating"

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSXPCProxyCreating for ProtocolObject<T>

Implementors§