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§
fn makeNewConnection_sender( &self, conn: &NSConnection, ancestor: &NSConnection, ) -> bool
👎Deprecated:
Use NSXPCConnection instead
fn connection_shouldMakeNewConnection( &self, ancestor: &NSConnection, conn: &NSConnection, ) -> bool
👎Deprecated:
Use NSXPCConnection instead
Sourceunsafe fn authenticationDataForComponents(
&self,
components: &NSArray,
) -> Retained<NSData>
👎Deprecated: Use NSXPCConnection instead
Available on crate features NSArray and NSData only.
unsafe fn authenticationDataForComponents( &self, components: &NSArray, ) -> Retained<NSData>
Use NSXPCConnection instead
NSArray and NSData only.§Safety
components generic should be of the correct type.
Sourceunsafe fn authenticateComponents_withData(
&self,
components: &NSArray,
signature: &NSData,
) -> bool
👎Deprecated: Use NSXPCConnection instead
Available on crate features NSArray and NSData only.
unsafe fn authenticateComponents_withData( &self, components: &NSArray, signature: &NSData, ) -> bool
Use NSXPCConnection instead
NSArray and NSData only.§Safety
components generic should be of the correct type.
fn createConversationForConnection( &self, conn: &NSConnection, ) -> Retained<AnyObject>
👎Deprecated:
Use NSXPCConnection instead
fn connection_handleRequest( &self, connection: &NSConnection, doreq: &NSDistantObjectRequest, ) -> bool
👎Deprecated:
Use NSXPCConnection instead
Trait Implementations§
Source§impl ProtocolType for dyn NSConnectionDelegate
impl ProtocolType for dyn NSConnectionDelegate
impl<T> ImplementedBy<T> for dyn NSConnectionDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".