pub trait PeripheralProxyInterface: Send + Sync {
type ListenL2capResponseFut: Future<Output = Result<ChannelListenerRegistryListenL2capResult, Error>> + Send;
type AdvertiseResponseFut: Future<Output = Result<PeripheralAdvertiseResult, Error>> + Send;
type StartAdvertisingResponseFut: Future<Output = Result<PeripheralStartAdvertisingResult, Error>> + Send;
// Required methods
fn listen_l2cap(
&self,
payload: ChannelListenerRegistryListenL2capRequest,
) -> Self::ListenL2capResponseFut;
fn advertise(
&self,
parameters: &AdvertisingParameters,
advertised_peripheral: ClientEnd<AdvertisedPeripheralMarker>,
) -> Self::AdvertiseResponseFut;
fn start_advertising(
&self,
parameters: &AdvertisingParameters,
handle: ServerEnd<AdvertisingHandleMarker>,
) -> Self::StartAdvertisingResponseFut;
}Required Associated Types§
type ListenL2capResponseFut: Future<Output = Result<ChannelListenerRegistryListenL2capResult, Error>> + Send
type AdvertiseResponseFut: Future<Output = Result<PeripheralAdvertiseResult, Error>> + Send
type StartAdvertisingResponseFut: Future<Output = Result<PeripheralStartAdvertisingResult, Error>> + Send
Required Methods§
fn listen_l2cap( &self, payload: ChannelListenerRegistryListenL2capRequest, ) -> Self::ListenL2capResponseFut
fn advertise( &self, parameters: &AdvertisingParameters, advertised_peripheral: ClientEnd<AdvertisedPeripheralMarker>, ) -> Self::AdvertiseResponseFut
fn start_advertising( &self, parameters: &AdvertisingParameters, handle: ServerEnd<AdvertisingHandleMarker>, ) -> Self::StartAdvertisingResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".