Struct golem_cli::clients::worker::WorkerClientLive
source · pub struct WorkerClientLive<C: WorkerClient + Sync + Send> {
pub client: C,
pub context: Context,
pub allow_insecure: bool,
}
Fields§
§client: C
§context: Context
§allow_insecure: bool
Trait Implementations§
source§impl<C: Clone + WorkerClient + Sync + Send> Clone for WorkerClientLive<C>
impl<C: Clone + WorkerClient + Sync + Send> Clone for WorkerClientLive<C>
source§fn clone(&self) -> WorkerClientLive<C>
fn clone(&self) -> WorkerClientLive<C>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<C: WorkerClient + Sync + Send> WorkerClient for WorkerClientLive<C>
impl<C: WorkerClient + Sync + Send> WorkerClient for WorkerClientLive<C>
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,
Auto Trait Implementations§
impl<C> !RefUnwindSafe for WorkerClientLive<C>
impl<C> Send for WorkerClientLive<C>
impl<C> Sync for WorkerClientLive<C>
impl<C> Unpin for WorkerClientLive<C>where
C: Unpin,
impl<C> !UnwindSafe for WorkerClientLive<C>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more