Skip to main content

NSConnectionDelegate

Trait NSConnectionDelegate 

Source
pub unsafe trait NSConnectionDelegate: NSObjectProtocol {
    // Provided methods
    fn makeNewConnection_sender(
        &self,
        conn: &NSConnection,
        ancestor: &NSConnection,
    ) -> bool
       where Self: Sized + Message { ... }
    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 { ... }
    fn createConversationForConnection(
        &self,
        conn: &NSConnection,
    ) -> Retained<AnyObject>
       where Self: Sized + Message { ... }
    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

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

👎Deprecated:

Use NSXPCConnection instead

Source

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.
§Safety

components generic should be of the correct type.

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.
§Safety

components generic should be of the correct type.

Source

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

👎Deprecated:

Use NSXPCConnection instead

Source

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

👎Deprecated:

Use NSXPCConnection instead

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSConnectionDelegate

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

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> NSConnectionDelegate for ProtocolObject<T>

Implementors§