ExecutorSync

Trait ExecutorSync 

Source
pub trait ExecutorSync: Executor {
    // Required method
    fn execute<D, I, A>(
        delay: &mut D,
        bound_bus: &mut I2cBoundBusSync<I, A>,
        input: <Self::Command as Command>::In,
    ) -> Result<<Self::Command as Command>::Out, TransportError<Self::Error, I::Error>>
       where D: DelayNs,
             I: I2c<A> + ErrorType,
             A: AddressMode + Copy + Debug;
}

Required Methods§

Source

fn execute<D, I, A>( delay: &mut D, bound_bus: &mut I2cBoundBusSync<I, A>, input: <Self::Command as Command>::In, ) -> Result<<Self::Command as Command>::Out, TransportError<Self::Error, I::Error>>
where D: DelayNs, I: I2c<A> + ErrorType, A: AddressMode + Copy + Debug,

Execute the given command through the given I2C 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§