fidl_fuchsia_hardware_hidbus

Trait HidbusProxyInterface

Source
pub trait HidbusProxyInterface: Send + Sync {
    type QueryResponseFut: Future<Output = Result<HidbusQueryResult, Error>> + Send;
    type StartResponseFut: Future<Output = Result<HidbusStartResult, Error>> + Send;
    type StopResponseFut: Future<Output = Result<(), Error>> + Send;
    type GetDescriptorResponseFut: Future<Output = Result<HidbusGetDescriptorResult, Error>> + Send;
    type SetDescriptorResponseFut: Future<Output = Result<HidbusSetDescriptorResult, Error>> + Send;
    type GetReportResponseFut: Future<Output = Result<HidbusGetReportResult, Error>> + Send;
    type SetReportResponseFut: Future<Output = Result<HidbusSetReportResult, Error>> + Send;
    type GetIdleResponseFut: Future<Output = Result<HidbusGetIdleResult, Error>> + Send;
    type SetIdleResponseFut: Future<Output = Result<HidbusSetIdleResult, Error>> + Send;
    type GetProtocolResponseFut: Future<Output = Result<HidbusGetProtocolResult, Error>> + Send;
    type SetProtocolResponseFut: Future<Output = Result<HidbusSetProtocolResult, Error>> + Send;

    // Required methods
    fn query(&self) -> Self::QueryResponseFut;
    fn start(&self) -> Self::StartResponseFut;
    fn stop(&self) -> Self::StopResponseFut;
    fn get_descriptor(
        &self,
        desc_type: HidDescriptorType,
    ) -> Self::GetDescriptorResponseFut;
    fn set_descriptor(
        &self,
        desc_type: HidDescriptorType,
        data: &[u8],
    ) -> Self::SetDescriptorResponseFut;
    fn get_report(
        &self,
        rpt_type: ReportType,
        rpt_id: u8,
        len: u64,
    ) -> Self::GetReportResponseFut;
    fn set_report(
        &self,
        rpt_type: ReportType,
        rpt_id: u8,
        data: &[u8],
    ) -> Self::SetReportResponseFut;
    fn get_idle(&self, rpt_id: u8) -> Self::GetIdleResponseFut;
    fn set_idle(&self, rpt_id: u8, duration: i64) -> Self::SetIdleResponseFut;
    fn get_protocol(&self) -> Self::GetProtocolResponseFut;
    fn set_protocol(
        &self,
        protocol: HidProtocol,
    ) -> Self::SetProtocolResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn query(&self) -> Self::QueryResponseFut

Source

fn start(&self) -> Self::StartResponseFut

Source

fn stop(&self) -> Self::StopResponseFut

Source

fn get_descriptor( &self, desc_type: HidDescriptorType, ) -> Self::GetDescriptorResponseFut

Source

fn set_descriptor( &self, desc_type: HidDescriptorType, data: &[u8], ) -> Self::SetDescriptorResponseFut

Source

fn get_report( &self, rpt_type: ReportType, rpt_id: u8, len: u64, ) -> Self::GetReportResponseFut

Source

fn set_report( &self, rpt_type: ReportType, rpt_id: u8, data: &[u8], ) -> Self::SetReportResponseFut

Source

fn get_idle(&self, rpt_id: u8) -> Self::GetIdleResponseFut

Source

fn set_idle(&self, rpt_id: u8, duration: i64) -> Self::SetIdleResponseFut

Source

fn get_protocol(&self) -> Self::GetProtocolResponseFut

Source

fn set_protocol(&self, protocol: HidProtocol) -> Self::SetProtocolResponseFut

Implementors§

Source§

impl HidbusProxyInterface for HidbusProxy

Source§

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

Source§

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

Source§

type StopResponseFut = QueryResponseFut<()>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

type GetIdleResponseFut = QueryResponseFut<Result<i64, i32>>

Source§

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

Source§

type GetProtocolResponseFut = QueryResponseFut<Result<HidProtocol, i32>>

Source§

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