AsyncCommand

Trait AsyncCommand 

Source
pub trait AsyncCommand {
    type Ret;
    type Err;

    // Required method
    async fn execute_async<D: AsyncDevice + ?Sized>(
        &self,
        dev: &mut D,
    ) -> Result<Self::Ret, Self::Err>;
}
Available on crate feature async only.

Required Associated Types§

Required Methods§

Source

async fn execute_async<D: AsyncDevice + ?Sized>( &self, dev: &mut D, ) -> Result<Self::Ret, Self::Err>

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§