pub trait ProfileProxyInterface: Send + Sync {
    type AdvertiseResponseFut: Future<Output = Result<ProfileAdvertiseResult, Error>> + Send;
    type ConnectResponseFut: Future<Output = Result<ProfileConnectResult, Error>> + Send;

    // Required methods
    fn advertise(
        &self,
        payload: ProfileAdvertiseRequest,
    ) -> Self::AdvertiseResponseFut;
    fn search(&self, payload: ProfileSearchRequest) -> Result<(), Error>;
    fn connect(
        &self,
        peer_id: &PeerId,
        connection: &ConnectParameters,
    ) -> Self::ConnectResponseFut;
    fn connect_sco(
        &self,
        payload: ProfileConnectScoRequest,
    ) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

source

fn advertise( &self, payload: ProfileAdvertiseRequest, ) -> Self::AdvertiseResponseFut

source

fn search(&self, payload: ProfileSearchRequest) -> Result<(), Error>

source

fn connect( &self, peer_id: &PeerId, connection: &ConnectParameters, ) -> Self::ConnectResponseFut

source

fn connect_sco(&self, payload: ProfileConnectScoRequest) -> Result<(), Error>

Implementors§

source§

impl ProfileProxyInterface for ProfileProxy

§

type AdvertiseResponseFut = QueryResponseFut<Result<ProfileAdvertiseResponse, ErrorCode>>

§

type ConnectResponseFut = QueryResponseFut<Result<Channel, ErrorCode>>