pub trait ChannelProxyInterface: Send + Sync {
    type CreateChannelResponseFut: Future<Output = Result<ChannelCreateChannelResult, Error>> + Send;
    type ReadChannelResponseFut: Future<Output = Result<ChannelReadChannelResult, Error>> + Send;
    type WriteChannelResponseFut: Future<Output = Result<ChannelWriteChannelResult, Error>> + Send;
    type ReadChannelStreamingStartResponseFut: Future<Output = Result<ChannelReadChannelStreamingStartResult, Error>> + Send;
    type ReadChannelStreamingStopResponseFut: Future<Output = Result<ChannelReadChannelStreamingStopResult, Error>> + Send;

    // Required methods
    fn create_channel(
        &self,
        handles: &[NewHid; 2],
    ) -> Self::CreateChannelResponseFut;
    fn read_channel(&self, handle: &Hid) -> Self::ReadChannelResponseFut;
    fn write_channel(
        &self,
        handle: &Hid,
        data: &[u8],
        handles: &Handles,
    ) -> Self::WriteChannelResponseFut;
    fn read_channel_streaming_start(
        &self,
        handle: &Hid,
    ) -> Self::ReadChannelStreamingStartResponseFut;
    fn read_channel_streaming_stop(
        &self,
        handle: &Hid,
    ) -> Self::ReadChannelStreamingStopResponseFut;
}

Required Associated Types§

Required Methods§

source

fn create_channel( &self, handles: &[NewHid; 2], ) -> Self::CreateChannelResponseFut

source

fn read_channel(&self, handle: &Hid) -> Self::ReadChannelResponseFut

source

fn write_channel( &self, handle: &Hid, data: &[u8], handles: &Handles, ) -> Self::WriteChannelResponseFut

source

fn read_channel_streaming_start( &self, handle: &Hid, ) -> Self::ReadChannelStreamingStartResponseFut

source

fn read_channel_streaming_stop( &self, handle: &Hid, ) -> Self::ReadChannelStreamingStopResponseFut

Implementors§