Trait objc2_foundation::NSXPCProxyCreating

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

Provided Methods§

source

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

source

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

Available on crate features NSError and block2 only.
source

unsafe fn synchronousRemoteObjectProxyWithErrorHandler( &self, handler: &Block<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.
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§