Trait NSXPCProxyCreating

Source
pub unsafe trait NSXPCProxyCreating {
    // Provided methods
    unsafe 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 { ... }
    unsafe 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

unsafe 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 NSError and block2 only.
Source

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

Available on crate features NSError and block2 only.

Trait Implementations§

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
Source§

impl<T> ImplementedBy<T> for dyn NSXPCProxyCreating

Implementations on Foreign Types§

Source§

impl<T> NSXPCProxyCreating for ProtocolObject<T>

Implementors§