fidl_fuchsia_hardware_bluetooth

Trait VendorProxyInterface

Source
pub trait VendorProxyInterface: Send + Sync {
    type GetFeaturesResponseFut: Future<Output = Result<VendorFeatures, Error>> + Send;
    type EncodeCommandResponseFut: Future<Output = Result<VendorEncodeCommandResult, Error>> + Send;
    type OpenHciResponseFut: Future<Output = Result<VendorOpenHciResult, Error>> + Send;
    type OpenHciTransportResponseFut: Future<Output = Result<VendorOpenHciTransportResult, Error>> + Send;
    type OpenSnoopResponseFut: Future<Output = Result<VendorOpenSnoopResult, Error>> + Send;

    // Required methods
    fn get_features(&self) -> Self::GetFeaturesResponseFut;
    fn encode_command(
        &self,
        payload: &VendorCommand,
    ) -> Self::EncodeCommandResponseFut;
    fn open_hci(&self) -> Self::OpenHciResponseFut;
    fn open_hci_transport(&self) -> Self::OpenHciTransportResponseFut;
    fn open_snoop(&self) -> Self::OpenSnoopResponseFut;
}

Required Associated Types§

Required Methods§

Implementors§

Source§

impl VendorProxyInterface for VendorProxy

Source§

type GetFeaturesResponseFut = QueryResponseFut<VendorFeatures>

Source§

type EncodeCommandResponseFut = QueryResponseFut<Result<Vec<u8>, i32>>

Source§

type OpenHciResponseFut = QueryResponseFut<Result<ClientEnd<HciMarker>, i32>>

Source§

type OpenHciTransportResponseFut = QueryResponseFut<Result<ClientEnd<HciTransportMarker>, i32>>

Source§

type OpenSnoopResponseFut = QueryResponseFut<Result<ClientEnd<SnoopMarker>, i32>>