Trait CommandExtAsync

Source
pub trait CommandExtAsync: AsyncDevice {
    // Provided methods
    async fn execute_command_async<C, R, E>(&mut self, cmd: &C) -> Result<R, E>
       where C: AsyncCommand<Ret = R, Err = E> { ... }
    async fn execute_commands_async<C, E>(&mut self, cmd: &[C]) -> Result<(), E>
       where C: AsyncCommand<Err = E> { ... }
}
Available on crate feature async only.

Provided Methods§

Source

async fn execute_command_async<C, R, E>(&mut self, cmd: &C) -> Result<R, E>
where C: AsyncCommand<Ret = R, Err = E>,

Source

async fn execute_commands_async<C, E>(&mut self, cmd: &[C]) -> Result<(), E>
where C: AsyncCommand<Err = E>,

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§