pub trait OperationInvocation<CTX: Send>: Send + Sync {
// Required methods
fn execute<'a>(
&self,
ctx: CTX,
tenant: TenantId,
project: ProjectId,
request: &'a InvocationRequest,
) -> Pin<Box<dyn Future<Output = Result<Resource, OperationOutcomeError>> + Send + 'a>>;
fn code<'a>(&'a self) -> &'a str;
}Required Methods§
fn execute<'a>( &self, ctx: CTX, tenant: TenantId, project: ProjectId, request: &'a InvocationRequest, ) -> Pin<Box<dyn Future<Output = Result<Resource, OperationOutcomeError>> + Send + 'a>>
fn code<'a>(&'a self) -> &'a str
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".