ExecutorAsync

Trait ExecutorAsync 

Source
pub trait ExecutorAsync: Executor {
    // Required method
    async fn execute<D, I>(
        delay: &mut D,
        interface: &mut I,
        input: <Self::Command as Command>::In,
    ) -> Result<<Self::Command as Command>::Out, TransportError<Self::Error, I::Error>>
       where D: DelayNs,
             I: SpiDevice;
}

Required Methods§

Source

async fn execute<D, I>( delay: &mut D, interface: &mut I, input: <Self::Command as Command>::In, ) -> Result<<Self::Command as Command>::Out, TransportError<Self::Error, I::Error>>
where D: DelayNs, I: SpiDevice,

Execute the given command through the given SPI interface

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§