pub trait WorkerClient {
    // Required methods
    fn new_worker<'life0, 'async_trait>(
        &'life0 self,
        name: WorkerName,
        template_id: RawTemplateId,
        args: Vec<String>,
        env: Vec<(String, String)>
    ) -> Pin<Box<dyn Future<Output = Result<VersionedWorkerId, GolemError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_invocation_key<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        name: &'life1 WorkerName,
        template_id: &'life2 RawTemplateId
    ) -> Pin<Box<dyn Future<Output = Result<InvocationKey, GolemError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn invoke_and_await<'life0, 'async_trait>(
        &'life0 self,
        name: WorkerName,
        template_id: RawTemplateId,
        function: String,
        parameters: InvokeParameters,
        invocation_key: InvocationKey,
        use_stdio: bool
    ) -> Pin<Box<dyn Future<Output = Result<InvokeResult, GolemError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn invoke<'life0, 'async_trait>(
        &'life0 self,
        name: WorkerName,
        template_id: RawTemplateId,
        function: String,
        parameters: InvokeParameters
    ) -> Pin<Box<dyn Future<Output = Result<(), GolemError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn interrupt<'life0, 'async_trait>(
        &'life0 self,
        name: WorkerName,
        template_id: RawTemplateId
    ) -> Pin<Box<dyn Future<Output = Result<(), GolemError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn simulated_crash<'life0, 'async_trait>(
        &'life0 self,
        name: WorkerName,
        template_id: RawTemplateId
    ) -> Pin<Box<dyn Future<Output = Result<(), GolemError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn delete<'life0, 'async_trait>(
        &'life0 self,
        name: WorkerName,
        template_id: RawTemplateId
    ) -> Pin<Box<dyn Future<Output = Result<(), GolemError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_metadata<'life0, 'async_trait>(
        &'life0 self,
        name: WorkerName,
        template_id: RawTemplateId
    ) -> Pin<Box<dyn Future<Output = Result<WorkerMetadata, GolemError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn connect<'life0, 'async_trait>(
        &'life0 self,
        name: WorkerName,
        template_id: RawTemplateId
    ) -> Pin<Box<dyn Future<Output = Result<(), GolemError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn new_worker<'life0, 'async_trait>( &'life0 self, name: WorkerName, template_id: RawTemplateId, args: Vec<String>, env: Vec<(String, String)> ) -> Pin<Box<dyn Future<Output = Result<VersionedWorkerId, GolemError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn get_invocation_key<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, name: &'life1 WorkerName, template_id: &'life2 RawTemplateId ) -> Pin<Box<dyn Future<Output = Result<InvocationKey, GolemError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

source

fn invoke_and_await<'life0, 'async_trait>( &'life0 self, name: WorkerName, template_id: RawTemplateId, function: String, parameters: InvokeParameters, invocation_key: InvocationKey, use_stdio: bool ) -> Pin<Box<dyn Future<Output = Result<InvokeResult, GolemError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn invoke<'life0, 'async_trait>( &'life0 self, name: WorkerName, template_id: RawTemplateId, function: String, parameters: InvokeParameters ) -> Pin<Box<dyn Future<Output = Result<(), GolemError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn interrupt<'life0, 'async_trait>( &'life0 self, name: WorkerName, template_id: RawTemplateId ) -> Pin<Box<dyn Future<Output = Result<(), GolemError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn simulated_crash<'life0, 'async_trait>( &'life0 self, name: WorkerName, template_id: RawTemplateId ) -> Pin<Box<dyn Future<Output = Result<(), GolemError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn delete<'life0, 'async_trait>( &'life0 self, name: WorkerName, template_id: RawTemplateId ) -> Pin<Box<dyn Future<Output = Result<(), GolemError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn get_metadata<'life0, 'async_trait>( &'life0 self, name: WorkerName, template_id: RawTemplateId ) -> Pin<Box<dyn Future<Output = Result<WorkerMetadata, GolemError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn connect<'life0, 'async_trait>( &'life0 self, name: WorkerName, template_id: RawTemplateId ) -> Pin<Box<dyn Future<Output = Result<(), GolemError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§