pub trait CapabilityExecutor: Send + Sync {
// Required method
fn invoke<'life0, 'async_trait>(
&'life0 self,
invocation: Invocation,
) -> Pin<Box<dyn Future<Output = InvocationOutcome> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Available on crate feature
awp only.Expand description
The governed path every binding calls (spec 3.5 §7.4, D-4).
Required Methods§
Sourcefn invoke<'life0, 'async_trait>(
&'life0 self,
invocation: Invocation,
) -> Pin<Box<dyn Future<Output = InvocationOutcome> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn invoke<'life0, 'async_trait>(
&'life0 self,
invocation: Invocation,
) -> Pin<Box<dyn Future<Output = InvocationOutcome> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Executes, holds or refuses invocation.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".