pub trait DeviceProxyInterface: Send + Sync {
    type OpenResponseFut: Future<Output = Result<DeviceOpenResult, Error>> + Send;
    type CloseResponseFut: Future<Output = Result<DeviceCloseResult, Error>> + Send;
    type GetMaxFrameSizeResponseFut: Future<Output = Result<u32, Error>> + Send;

    // Required methods
    fn open(&self) -> Self::OpenResponseFut;
    fn close(&self) -> Self::CloseResponseFut;
    fn get_max_frame_size(&self) -> Self::GetMaxFrameSizeResponseFut;
    fn send_frame(&self, data: &[u8]) -> Result<(), Error>;
    fn ready_to_receive_frames(
        &self,
        number_of_frames: u32
    ) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

source

fn open(&self) -> Self::OpenResponseFut

source

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

source

fn get_max_frame_size(&self) -> Self::GetMaxFrameSizeResponseFut

source

fn send_frame(&self, data: &[u8]) -> Result<(), Error>

source

fn ready_to_receive_frames(&self, number_of_frames: u32) -> Result<(), Error>

Implementors§

source§

impl DeviceProxyInterface for DeviceProxy

§

type OpenResponseFut = QueryResponseFut<Result<(), Error>>

§

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

§

type GetMaxFrameSizeResponseFut = QueryResponseFut<u32>