fidl_fuchsia_hardware_bluetooth

Trait PeerProxyInterface

Source
pub trait PeerProxyInterface: Send + Sync {
    type AssignConnectionStatusResponseFut: Future<Output = Result<(), Error>> + Send;
    type WatchConnectionStatesResponseFut: Future<Output = Result<Vec<ConnectionState>, Error>> + Send;
    type SetDeviceClassResponseFut: Future<Output = Result<(), Error>> + Send;
    type SetServiceDefinitionsResponseFut: Future<Output = Result<(), Error>> + Send;
    type SetLeAdvertisementResponseFut: Future<Output = Result<PeerSetLeAdvertisementResult, Error>> + Send;

    // Required methods
    fn assign_connection_status(
        &self,
        status: HciError,
    ) -> Self::AssignConnectionStatusResponseFut;
    fn emulate_le_connection_complete(
        &self,
        role: ConnectionRole,
    ) -> Result<(), Error>;
    fn emulate_disconnection_complete(&self) -> Result<(), Error>;
    fn watch_connection_states(&self) -> Self::WatchConnectionStatesResponseFut;
    fn set_device_class(&self, value: u32) -> Self::SetDeviceClassResponseFut;
    fn set_service_definitions(
        &self,
        service_definitions: &[ServiceDefinition],
    ) -> Self::SetServiceDefinitionsResponseFut;
    fn set_le_advertisement(
        &self,
        payload: &PeerSetLeAdvertisementRequest,
    ) -> Self::SetLeAdvertisementResponseFut;
}

Required Associated Types§

Required Methods§

Implementors§