Trait ControllerCmdAsync

Source
pub trait ControllerCmdAsync<C: AsyncCmd + ?Sized>: Controller {
    // Required method
    fn exec(
        &self,
        cmd: &C,
    ) -> impl Future<Output = Result<(), Error<Self::Error>>>;
}
Expand description

Marker trait for declaring that a controller supports a given async HCI command.

Required Methods§

Source

fn exec(&self, cmd: &C) -> impl Future<Output = Result<(), Error<Self::Error>>>

Note: Some implementations may require Controller::read() to be polled for this to return.

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§

Source§

impl<T, C, const SLOTS: usize> ControllerCmdAsync<C> for ExternalController<T, SLOTS>
where T: Transport, C: AsyncCmd,