fidl_fuchsia_bluetooth_bredr

Trait ProfileProxyInterface

Source
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§