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§
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>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".