Trait ControllerCmdSync

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

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

Required Methods§

Source

fn exec( &self, cmd: &C, ) -> impl Future<Output = Result<C::Return, 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> ControllerCmdSync<C> for ExternalController<T, SLOTS>