pub trait Instance {
    // Required methods
    fn get_instance_of_id<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        worker_id: &'life1 str,
        authorization: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<ComponentInstance, InstanceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn launch_new_instance<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        template_id: &'life1 str,
        field0: WorkerCreationRequest,
        authorization: &'life2 str
    ) -> Pin<Box<dyn Future<Output = Result<ComponentInstance, InstanceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn delete_instance<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        template_id: &'life1 str,
        worker_name: &'life2 str,
        authorization: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<(), InstanceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn get_invocation_key<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        template_id: &'life1 str,
        worker_name: &'life2 str,
        authorization: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<InvocationKey, InstanceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn invoke_and_await_function<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>(
        &'life0 self,
        template_id: &'life1 str,
        worker_name: &'life2 str,
        invocation_key: &'life3 str,
        function: &'life4 str,
        calling_convention: Option<&'life5 str>,
        field0: InvokeParameters,
        authorization: &'life6 str
    ) -> Pin<Box<dyn Future<Output = Result<InvokeResult, InstanceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait,
             'life5: 'async_trait,
             'life6: 'async_trait;
    fn invoke_function<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
        &'life0 self,
        template_id: &'life1 str,
        worker_name: &'life2 str,
        function: &'life3 str,
        field0: InvokeParameters,
        authorization: &'life4 str
    ) -> Pin<Box<dyn Future<Output = Result<(), InstanceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait;
    fn complete_instance_promise<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        template_id: &'life1 str,
        worker_name: &'life2 str,
        field0: CompleteParameters,
        authorization: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, InstanceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn interrupt_instance<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        template_id: &'life1 str,
        worker_name: &'life2 str,
        recover_immediately: Option<bool>,
        authorization: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<(), InstanceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
    fn get_instance_metadata<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        template_id: &'life1 str,
        worker_name: &'life2 str,
        authorization: &'life3 str
    ) -> Pin<Box<dyn Future<Output = Result<InstanceMetadata, InstanceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}

Required Methods§

source

fn get_instance_of_id<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, worker_id: &'life1 str, authorization: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<ComponentInstance, InstanceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn launch_new_instance<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, template_id: &'life1 str, field0: WorkerCreationRequest, authorization: &'life2 str ) -> Pin<Box<dyn Future<Output = Result<ComponentInstance, InstanceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn delete_instance<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, template_id: &'life1 str, worker_name: &'life2 str, authorization: &'life3 str ) -> Pin<Box<dyn Future<Output = Result<(), InstanceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

source

fn get_invocation_key<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, template_id: &'life1 str, worker_name: &'life2 str, authorization: &'life3 str ) -> Pin<Box<dyn Future<Output = Result<InvocationKey, InstanceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

source

fn invoke_and_await_function<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'life6, 'async_trait>( &'life0 self, template_id: &'life1 str, worker_name: &'life2 str, invocation_key: &'life3 str, function: &'life4 str, calling_convention: Option<&'life5 str>, field0: InvokeParameters, authorization: &'life6 str ) -> Pin<Box<dyn Future<Output = Result<InvokeResult, InstanceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait, 'life6: 'async_trait,

source

fn invoke_function<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, template_id: &'life1 str, worker_name: &'life2 str, function: &'life3 str, field0: InvokeParameters, authorization: &'life4 str ) -> Pin<Box<dyn Future<Output = Result<(), InstanceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

source

fn complete_instance_promise<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, template_id: &'life1 str, worker_name: &'life2 str, field0: CompleteParameters, authorization: &'life3 str ) -> Pin<Box<dyn Future<Output = Result<bool, InstanceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

source

fn interrupt_instance<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, template_id: &'life1 str, worker_name: &'life2 str, recover_immediately: Option<bool>, authorization: &'life3 str ) -> Pin<Box<dyn Future<Output = Result<(), InstanceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

source

fn get_instance_metadata<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, template_id: &'life1 str, worker_name: &'life2 str, authorization: &'life3 str ) -> Pin<Box<dyn Future<Output = Result<InstanceMetadata, InstanceError>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Implementors§