pub unsafe trait NSNetServiceDelegate: NSObjectProtocol {
// Provided methods
unsafe fn netServiceWillPublish(&self, sender: &NSNetService)
where Self: Sized + Message { ... }
unsafe fn netServiceDidPublish(&self, sender: &NSNetService)
where Self: Sized + Message { ... }
unsafe fn netService_didNotPublish(
&self,
sender: &NSNetService,
error_dict: &NSDictionary<NSString, NSNumber>
)
where Self: Sized + Message { ... }
unsafe fn netServiceWillResolve(&self, sender: &NSNetService)
where Self: Sized + Message { ... }
unsafe fn netServiceDidResolveAddress(&self, sender: &NSNetService)
where Self: Sized + Message { ... }
unsafe fn netService_didNotResolve(
&self,
sender: &NSNetService,
error_dict: &NSDictionary<NSString, NSNumber>
)
where Self: Sized + Message { ... }
unsafe fn netServiceDidStop(&self, sender: &NSNetService)
where Self: Sized + Message { ... }
unsafe fn netService_didUpdateTXTRecordData(
&self,
sender: &NSNetService,
data: &NSData
)
where Self: Sized + Message { ... }
unsafe fn netService_didAcceptConnectionWithInputStream_outputStream(
&self,
sender: &NSNetService,
input_stream: &NSInputStream,
output_stream: &NSOutputStream
)
where Self: Sized + Message { ... }
}
Available on crate feature
NSNetServices
only.Provided Methods§
unsafe fn netServiceWillPublish(&self, sender: &NSNetService)
unsafe fn netServiceDidPublish(&self, sender: &NSNetService)
unsafe fn netService_didNotPublish( &self, sender: &NSNetService, error_dict: &NSDictionary<NSString, NSNumber> )
Available on crate features
NSDictionary
and NSString
and NSValue
only.unsafe fn netServiceWillResolve(&self, sender: &NSNetService)
unsafe fn netServiceDidResolveAddress(&self, sender: &NSNetService)
unsafe fn netService_didNotResolve( &self, sender: &NSNetService, error_dict: &NSDictionary<NSString, NSNumber> )
Available on crate features
NSDictionary
and NSString
and NSValue
only.unsafe fn netServiceDidStop(&self, sender: &NSNetService)
unsafe fn netService_didUpdateTXTRecordData( &self, sender: &NSNetService, data: &NSData )
Available on crate feature
NSData
only.unsafe fn netService_didAcceptConnectionWithInputStream_outputStream( &self, sender: &NSNetService, input_stream: &NSInputStream, output_stream: &NSOutputStream )
Available on crate feature
NSStream
only.