pub unsafe trait MCNearbyServiceBrowserDelegate: NSObjectProtocol {
// Provided methods
unsafe fn browser_foundPeer_withDiscoveryInfo(
&self,
browser: &MCNearbyServiceBrowser,
peer_id: &MCPeerID,
info: Option<&NSDictionary<NSString, NSString>>
)
where Self: Sized + Message { ... }
unsafe fn browser_lostPeer(
&self,
browser: &MCNearbyServiceBrowser,
peer_id: &MCPeerID
)
where Self: Sized + Message { ... }
unsafe fn browser_didNotStartBrowsingForPeers(
&self,
browser: &MCNearbyServiceBrowser,
error: &NSError
)
where Self: Sized + Message { ... }
}Available on crate feature
MCNearbyServiceBrowser only.Provided Methods§
unsafe fn browser_foundPeer_withDiscoveryInfo( &self, browser: &MCNearbyServiceBrowser, peer_id: &MCPeerID, info: Option<&NSDictionary<NSString, NSString>> )
Available on crate feature
MCPeerID only.unsafe fn browser_lostPeer( &self, browser: &MCNearbyServiceBrowser, peer_id: &MCPeerID )
Available on crate feature
MCPeerID only.unsafe fn browser_didNotStartBrowsingForPeers( &self, browser: &MCNearbyServiceBrowser, error: &NSError )
Trait Implementations§
source§impl ProtocolType for dyn MCNearbyServiceBrowserDelegate
impl ProtocolType for dyn MCNearbyServiceBrowserDelegate
impl<T> ImplementedBy<T> for dyn MCNearbyServiceBrowserDelegate
Implementations on Foreign Types§
impl<T> MCNearbyServiceBrowserDelegate for ProtocolObject<T>where
T: ?Sized + MCNearbyServiceBrowserDelegate,
Implementors§
impl MCNearbyServiceBrowserDelegate for MCBrowserViewController
Available on crate feature
objc2-app-kit and crate feature MCBrowserViewController and macOS only.