pub trait ControlCommandProvider: ContextProvider {
// Required method
fn submit_command<'life0, 'life1, 'async_trait>(
&'life0 self,
command: &'life1 ControlCommand,
) -> Pin<Box<dyn Future<Output = Result<CommandAck, ProviderError>> + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
A provider that accepts control commands — a sibling capability to
crate::WeatherBriefingProvider under the same ContextProvider
identity.
Required Methods§
Sourcefn submit_command<'life0, 'life1, 'async_trait>(
&'life0 self,
command: &'life1 ControlCommand,
) -> Pin<Box<dyn Future<Output = Result<CommandAck, ProviderError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn submit_command<'life0, 'life1, 'async_trait>(
&'life0 self,
command: &'life1 ControlCommand,
) -> Pin<Box<dyn Future<Output = Result<CommandAck, ProviderError>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Submit a control command and await its acknowledgement.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".