AsyncCmd

Trait AsyncCmd 

Source
pub trait AsyncCmd: Cmd {
    // Provided method
    fn exec<C: ControllerCmdAsync<Self>>(
        &self,
        controller: &C,
    ) -> impl Future<Output = Result<(), Error<<C as ErrorType>::Error>>> { ... }
}
Expand description

A marker trait for objects representing HCI Commands that generate CommandStatus events

Provided Methods§

Source

fn exec<C: ControllerCmdAsync<Self>>( &self, controller: &C, ) -> impl Future<Output = Result<(), Error<<C as ErrorType>::Error>>>

Run the command on the provided controller.

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§