fidl_fuchsia_fdomainTrait ChannelProxyInterface
Source 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;
}