Trait objc2_foundation::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
    ) -> Id<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
    ) -> Id<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.

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 ) -> Id<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 ) -> Id<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.
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§