Skip to main content

GpioEndpointProxyInterface

Trait GpioEndpointProxyInterface 

Source
pub trait GpioEndpointProxyInterface: Send + Sync {
    type ReadResponseFut: Future<Output = Result<GpioEndpointReadResult, Error>> + Send;
    type WriteResponseFut: Future<Output = Result<GpioEndpointWriteResult, Error>> + Send;

    // Required methods
    fn read(&self) -> Self::ReadResponseFut;
    fn write(&self, value: bool) -> Self::WriteResponseFut;
}

Required Associated Types§

Required Methods§

Source

fn read(&self) -> Self::ReadResponseFut

Source

fn write(&self, value: bool) -> Self::WriteResponseFut

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§