fidl_fuchsia_bluetooth_bredr_test

Trait PeerObserverProxyInterface

Source
pub trait PeerObserverProxyInterface: Send + Sync {
    type ServiceFoundResponseFut: Future<Output = Result<(), Error>> + Send;
    type PeerConnectedResponseFut: Future<Output = Result<(), Error>> + Send;

    // Required methods
    fn service_found(
        &self,
        peer_id: &PeerId,
        protocol: Option<&[ProtocolDescriptor]>,
        attributes: &[Attribute],
    ) -> Self::ServiceFoundResponseFut;
    fn peer_connected(
        &self,
        peer_id: &PeerId,
        protocol: &[ProtocolDescriptor],
    ) -> Self::PeerConnectedResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn service_found( &self, peer_id: &PeerId, protocol: Option<&[ProtocolDescriptor]>, attributes: &[Attribute], ) -> Self::ServiceFoundResponseFut

Source

fn peer_connected( &self, peer_id: &PeerId, protocol: &[ProtocolDescriptor], ) -> Self::PeerConnectedResponseFut

Implementors§