pub trait DeviceProxyInterface: Send + Sync {
    type WriteFrameResponseFut: Future<Output = Result<DeviceWriteFrameResult, Error>> + Send;
    type ReadFrameResponseFut: Future<Output = Result<DeviceReadFrameResult, Error>> + Send;
    type GetSignalsResponseFut: Future<Output = Result<EventPair, Error>> + Send;

    // Required methods
    fn write_frame(&self, frame: &Frame) -> Self::WriteFrameResponseFut;
    fn read_frame(&self) -> Self::ReadFrameResponseFut;
    fn get_signals(&self) -> Self::GetSignalsResponseFut;
    fn add_port(
        &self,
        config: &DevicePortConfig,
        port: ServerEnd<PortMarker>
    ) -> Result<(), Error>;
    fn get_device(&self, device: ServerEnd<DeviceMarker>) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

source

fn write_frame(&self, frame: &Frame) -> Self::WriteFrameResponseFut

source

fn read_frame(&self) -> Self::ReadFrameResponseFut

source

fn get_signals(&self) -> Self::GetSignalsResponseFut

source

fn add_port( &self, config: &DevicePortConfig, port: ServerEnd<PortMarker> ) -> Result<(), Error>

source

fn get_device(&self, device: ServerEnd<DeviceMarker>) -> Result<(), Error>

Implementors§

source§

impl DeviceProxyInterface for DeviceProxy

§

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

§

type ReadFrameResponseFut = QueryResponseFut<Result<Frame, i32>>

§

type GetSignalsResponseFut = QueryResponseFut<EventPair>