fidl_fuchsia_hardware_ptyTrait DeviceProxyInterface
Source pub trait DeviceProxyInterface: Send + Sync {
type CloseResponseFut: Future<Output = Result<CloseableCloseResult, Error>> + Send;
type QueryResponseFut: Future<Output = Result<Vec<u8>, Error>> + Send;
type ReadResponseFut: Future<Output = Result<ReadableReadResult, Error>> + Send;
type WriteResponseFut: Future<Output = Result<WritableWriteResult, Error>> + Send;
type DescribeResponseFut: Future<Output = Result<DeviceDescribeResponse, Error>> + Send;
type OpenClientResponseFut: Future<Output = Result<i32, Error>> + Send;
type ClrSetFeatureResponseFut: Future<Output = Result<(i32, u32), Error>> + Send;
type GetWindowSizeResponseFut: Future<Output = Result<(i32, WindowSize), Error>> + Send;
type MakeActiveResponseFut: Future<Output = Result<i32, Error>> + Send;
type ReadEventsResponseFut: Future<Output = Result<(i32, u32), Error>> + Send;
type SetWindowSizeResponseFut: Future<Output = Result<i32, Error>> + Send;
// Required methods
fn clone2(&self, request: ServerEnd<CloneableMarker>) -> Result<(), Error>;
fn close(&self) -> Self::CloseResponseFut;
fn query(&self) -> Self::QueryResponseFut;
fn read(&self, count: u64) -> Self::ReadResponseFut;
fn write(&self, data: &[u8]) -> Self::WriteResponseFut;
fn describe(&self) -> Self::DescribeResponseFut;
fn open_client(
&self,
id: u32,
client: ServerEnd<DeviceMarker>,
) -> Self::OpenClientResponseFut;
fn clr_set_feature(
&self,
clr: u32,
set: u32,
) -> Self::ClrSetFeatureResponseFut;
fn get_window_size(&self) -> Self::GetWindowSizeResponseFut;
fn make_active(&self, client_pty_id: u32) -> Self::MakeActiveResponseFut;
fn read_events(&self) -> Self::ReadEventsResponseFut;
fn set_window_size(
&self,
size: &WindowSize,
) -> Self::SetWindowSizeResponseFut;
}