pub struct TaskState {
pub last_restart: DateTime<Utc>,
pub started_at: DateTime<Utc>,
pub finished_at: DateTime<Utc>,
pub events: Vec<TaskEvent>,
pub task_handle: Option<TaskHandle>,
pub state: String,
pub failed: bool,
pub restarts: u64,
}
Expand description
TaskState tracks the current state of a task and events that caused state transitions.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§last_restart: DateTime<Utc>
§started_at: DateTime<Utc>
§finished_at: DateTime<Utc>
§events: Vec<TaskEvent>
§task_handle: Option<TaskHandle>
Experimental - TaskHandle is based on drivers.TaskHandle and used by remote task drivers to migrate task handles between allocations.
state: String
§failed: bool
§restarts: u64
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskState
impl<'de> Deserialize<'de> for TaskState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TaskState
Auto Trait Implementations§
impl Freeze for TaskState
impl RefUnwindSafe for TaskState
impl Send for TaskState
impl Sync for TaskState
impl Unpin for TaskState
impl UnwindSafe for TaskState
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