Trait NSConnectionDelegate

Source
pub unsafe trait NSConnectionDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn makeNewConnection_sender(
        &self,
        conn: &NSConnection,
        ancestor: &NSConnection,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn connection_shouldMakeNewConnection(
        &self,
        ancestor: &NSConnection,
        conn: &NSConnection,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn authenticationDataForComponents(
        &self,
        components: &NSArray,
    ) -> Retained<NSData>
       where Self: Sized + Message { ... }
    unsafe fn authenticateComponents_withData(
        &self,
        components: &NSArray,
        signature: &NSData,
    ) -> bool
       where Self: Sized + Message { ... }
    unsafe fn createConversationForConnection(
        &self,
        conn: &NSConnection,
    ) -> Retained<AnyObject>
       where Self: Sized + Message { ... }
    unsafe fn connection_handleRequest(
        &self,
        connection: &NSConnection,
        doreq: &NSDistantObjectRequest,
    ) -> bool
       where Self: Sized + Message { ... }
}
👎Deprecated: Use NSXPCConnection instead
Available on crate feature NSConnection only.
Expand description

Provided Methods§

Source

unsafe fn makeNewConnection_sender( &self, conn: &NSConnection, ancestor: &NSConnection, ) -> bool
where Self: Sized + Message,

👎Deprecated: Use NSXPCConnection instead
Source

unsafe fn connection_shouldMakeNewConnection( &self, ancestor: &NSConnection, conn: &NSConnection, ) -> bool
where Self: Sized + Message,

👎Deprecated: Use NSXPCConnection instead
Source

unsafe fn authenticationDataForComponents( &self, components: &NSArray, ) -> Retained<NSData>
where Self: Sized + Message,

👎Deprecated: Use NSXPCConnection instead
Available on crate features NSArray and NSData only.
Source

unsafe fn authenticateComponents_withData( &self, components: &NSArray, signature: &NSData, ) -> bool
where Self: Sized + Message,

👎Deprecated: Use NSXPCConnection instead
Available on crate features NSArray and NSData only.
Source

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

👎Deprecated: Use NSXPCConnection instead
Source

unsafe fn connection_handleRequest( &self, connection: &NSConnection, doreq: &NSDistantObjectRequest, ) -> bool
where Self: Sized + Message,

👎Deprecated: Use NSXPCConnection instead

Trait Implementations§

Source§

impl ProtocolType for dyn NSConnectionDelegate

Source§

const NAME: &'static str = "NSConnectionDelegate"

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 NSConnectionDelegate

Implementations on Foreign Types§

Source§

impl<T> NSConnectionDelegate for ProtocolObject<T>

Implementors§