fidl_fuchsia_hardware_input

Trait DeviceProxyInterface

Source
pub trait DeviceProxyInterface: Send + Sync {
    type QueryResponseFut: Future<Output = Result<DeviceQueryResult, Error>> + Send;
    type GetReportDescResponseFut: Future<Output = Result<Vec<u8>, Error>> + Send;
    type GetDeviceReportsReaderResponseFut: Future<Output = Result<DeviceGetDeviceReportsReaderResult, Error>> + Send;
    type ReadReportResponseFut: Future<Output = Result<DeviceReadReportResult, Error>> + Send;
    type ReadReportsResponseFut: Future<Output = Result<DeviceReadReportsResult, Error>> + Send;
    type GetReportsEventResponseFut: Future<Output = Result<DeviceGetReportsEventResult, Error>> + Send;
    type GetReportResponseFut: Future<Output = Result<DeviceGetReportResult, Error>> + Send;
    type SetReportResponseFut: Future<Output = Result<DeviceSetReportResult, Error>> + Send;

    // Required methods
    fn query(&self) -> Self::QueryResponseFut;
    fn get_report_desc(&self) -> Self::GetReportDescResponseFut;
    fn get_device_reports_reader(
        &self,
        reader: ServerEnd<DeviceReportsReaderMarker>,
    ) -> Self::GetDeviceReportsReaderResponseFut;
    fn read_report(&self) -> Self::ReadReportResponseFut;
    fn read_reports(&self) -> Self::ReadReportsResponseFut;
    fn get_reports_event(&self) -> Self::GetReportsEventResponseFut;
    fn get_report(
        &self,
        type_: ReportType,
        id: u8,
    ) -> Self::GetReportResponseFut;
    fn set_report(
        &self,
        type_: ReportType,
        id: u8,
        report: &[u8],
    ) -> Self::SetReportResponseFut;
    fn set_trace_id(&self, id: u32) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Implementors§

Source§

impl DeviceProxyInterface for DeviceProxy

Source§

type QueryResponseFut = QueryResponseFut<Result<HidInfo, i32>>

Source§

type GetReportDescResponseFut = QueryResponseFut<Vec<u8>>

Source§

type GetDeviceReportsReaderResponseFut = QueryResponseFut<Result<(), i32>>

Source§

type ReadReportResponseFut = QueryResponseFut<Result<Report, i32>>

Source§

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

Source§

type GetReportsEventResponseFut = QueryResponseFut<Result<Event, i32>>

Source§

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

Source§

type SetReportResponseFut = QueryResponseFut<Result<(), i32>>