fidl_fuchsia_bluetooth_le

Trait PrivilegedPeripheralProxyInterface

Source
pub trait PrivilegedPeripheralProxyInterface: 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§

Required Methods§

Implementors§