fidl_fuchsia_hardware_pty

Trait 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;
}

Required Associated Types§

Source

type CloseResponseFut: Future<Output = Result<CloseableCloseResult, Error>> + Send

Source

type QueryResponseFut: Future<Output = Result<Vec<u8>, Error>> + Send

Source

type ReadResponseFut: Future<Output = Result<ReadableReadResult, Error>> + Send

Source

type WriteResponseFut: Future<Output = Result<WritableWriteResult, Error>> + Send

Source

type DescribeResponseFut: Future<Output = Result<DeviceDescribeResponse, Error>> + Send

Source

type OpenClientResponseFut: Future<Output = Result<i32, Error>> + Send

Source

type ClrSetFeatureResponseFut: Future<Output = Result<(i32, u32), Error>> + Send

Source

type GetWindowSizeResponseFut: Future<Output = Result<(i32, WindowSize), Error>> + Send

Source

type MakeActiveResponseFut: Future<Output = Result<i32, Error>> + Send

Source

type ReadEventsResponseFut: Future<Output = Result<(i32, u32), Error>> + Send

Source

type SetWindowSizeResponseFut: Future<Output = Result<i32, Error>> + Send

Required Methods§

Source

fn clone2(&self, request: ServerEnd<CloneableMarker>) -> Result<(), Error>

Source

fn close(&self) -> Self::CloseResponseFut

Source

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

Source

fn read(&self, count: u64) -> Self::ReadResponseFut

Source

fn write(&self, data: &[u8]) -> Self::WriteResponseFut

Source

fn describe(&self) -> Self::DescribeResponseFut

Source

fn open_client( &self, id: u32, client: ServerEnd<DeviceMarker>, ) -> Self::OpenClientResponseFut

Source

fn clr_set_feature(&self, clr: u32, set: u32) -> Self::ClrSetFeatureResponseFut

Source

fn get_window_size(&self) -> Self::GetWindowSizeResponseFut

Source

fn make_active(&self, client_pty_id: u32) -> Self::MakeActiveResponseFut

Source

fn read_events(&self) -> Self::ReadEventsResponseFut

Source

fn set_window_size(&self, size: &WindowSize) -> Self::SetWindowSizeResponseFut

Implementors§

Source§

impl DeviceProxyInterface for DeviceProxy

Source§

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

Source§

type QueryResponseFut = QueryResponseFut<Vec<u8>>

Source§

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

Source§

type WriteResponseFut = QueryResponseFut<Result<u64, i32>>

Source§

type DescribeResponseFut = QueryResponseFut<DeviceDescribeResponse>

Source§

type OpenClientResponseFut = QueryResponseFut<i32>

Source§

type ClrSetFeatureResponseFut = QueryResponseFut<(i32, u32)>

Source§

type GetWindowSizeResponseFut = QueryResponseFut<(i32, WindowSize)>

Source§

type MakeActiveResponseFut = QueryResponseFut<i32>

Source§

type ReadEventsResponseFut = QueryResponseFut<(i32, u32)>

Source§

type SetWindowSizeResponseFut = QueryResponseFut<i32>