pub struct WorkloadState {
pub execution_state: WorkloadExecutionState,
pub workload_instance_name: WorkloadInstanceName,
}
Expand description
Struct that contains the instance name and the execution state of the workload.
Fields§
§execution_state: WorkloadExecutionState
The execution state of the workload.
workload_instance_name: WorkloadInstanceName
The instance name of the workload.
Implementations§
Source§impl WorkloadState
impl WorkloadState
Sourcepub fn new_from_exec_state(
agent_name: String,
workload_name: String,
workload_id: String,
exec_state: WorkloadExecutionState,
) -> WorkloadState
pub fn new_from_exec_state( agent_name: String, workload_name: String, workload_id: String, exec_state: WorkloadExecutionState, ) -> WorkloadState
Creates a new WorkloadState
from a [WorkloadExecutionState
] instance.
§Arguments
agent_name
- The name of the agent;workload_name
- The name of the workload;workload_id
- The id of the workload;exec_state
- The [WorkloadExecutionState
] to create theWorkloadState
from.
§Returns
A new WorkloadState
instance.
Trait Implementations§
Source§impl Clone for WorkloadState
impl Clone for WorkloadState
Source§fn clone(&self) -> WorkloadState
fn clone(&self) -> WorkloadState
Returns a duplicate 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 Debug for WorkloadState
impl Debug for WorkloadState
Source§impl Default for WorkloadState
impl Default for WorkloadState
Source§fn default() -> WorkloadState
fn default() -> WorkloadState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkloadState
impl RefUnwindSafe for WorkloadState
impl Send for WorkloadState
impl Sync for WorkloadState
impl Unpin for WorkloadState
impl UnwindSafe for WorkloadState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request