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§

source

unsafe fn browser_foundPeer_withDiscoveryInfo( &self, browser: &MCNearbyServiceBrowser, peer_id: &MCPeerID, info: Option<&NSDictionary<NSString, NSString>> )
where Self: Sized + Message,

Available on crate feature MCPeerID only.
source

unsafe fn browser_lostPeer( &self, browser: &MCNearbyServiceBrowser, peer_id: &MCPeerID )
where Self: Sized + Message,

Available on crate feature MCPeerID only.
source

unsafe fn browser_didNotStartBrowsingForPeers( &self, browser: &MCNearbyServiceBrowser, error: &NSError )
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn MCNearbyServiceBrowserDelegate

source§

const NAME: &'static str = "MCNearbyServiceBrowserDelegate"

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 MCNearbyServiceBrowserDelegate

Implementations on Foreign Types§

source§

impl<T> MCNearbyServiceBrowserDelegate for ProtocolObject<T>

Implementors§

source§

impl MCNearbyServiceBrowserDelegate for MCBrowserViewController

Available on crate feature objc2-app-kit and crate feature MCBrowserViewController and macOS only.