Trait FunctionInvoker
Source pub trait FunctionInvoker:
FunctionInvokerSync
+ Send
+ Sync {
// Required methods
fn register<'life0, 'life1, 'async_trait>(
&'life0 self,
def: FunctionDefinition,
route_id: Option<&'life1 str>,
) -> Pin<Box<dyn Future<Output = Result<(), FunctionInvocationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn unregister<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
id: &'life1 FunctionId,
route_id: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<(), FunctionInvocationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn invoke<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
id: &'life1 FunctionId,
exchange: &'life2 Exchange,
) -> Pin<Box<dyn Future<Output = Result<ExchangePatch, FunctionInvocationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn prepare_reload<'life0, 'async_trait>(
&'life0 self,
diff: FunctionDiff,
generation: u64,
) -> Pin<Box<dyn Future<Output = Result<PrepareToken, FunctionInvocationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn finalize_reload<'life0, 'life1, 'async_trait>(
&'life0 self,
diff: &'life1 FunctionDiff,
generation: u64,
) -> Pin<Box<dyn Future<Output = Result<(), FunctionInvocationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn rollback_reload<'life0, 'async_trait>(
&'life0 self,
token: PrepareToken,
generation: u64,
) -> Pin<Box<dyn Future<Output = Result<(), FunctionInvocationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn commit_staged<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<(), FunctionInvocationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn commit_reload<'life0, 'async_trait>(
&'life0 self,
diff: FunctionDiff,
generation: u64,
) -> Pin<Box<dyn Future<Output = Result<(), FunctionInvocationError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait { ... }
}