pub struct TaskEvent {Show 25 fields
pub type: String,
pub time: i64,
pub display_message: String,
pub details: HashMap<String, String>,
pub message: String,
pub fails_task: bool,
pub restart_reason: String,
pub setup_error: String,
pub driver_error: String,
pub driver_message: String,
pub exit_code: i64,
pub signal: i64,
pub kill_reason: String,
pub kill_timeout: TimeDelta,
pub kill_error: String,
pub start_delay: i64,
pub download_error: String,
pub validation_error: String,
pub disk_limit: i64,
pub disk_size: i64,
pub failed_sibling: String,
pub vault_error: String,
pub task_signal_reason: String,
pub task_signal: String,
pub generic_source: String,
}
Expand description
TaskEvent is an event that effects the state of a task and contains meta-data appropriate to the events type.
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§type: String
§time: i64
§display_message: String
§details: HashMap<String, String>
§message: String
§fails_task: bool
DEPRECATION NOTICE: The following fields are all deprecated. see TaskEvent struct in structs.go for details.
restart_reason: String
§setup_error: String
§driver_error: String
§driver_message: String
§exit_code: i64
§signal: i64
§kill_reason: String
§kill_timeout: TimeDelta
§kill_error: String
§start_delay: i64
§download_error: String
§validation_error: String
§disk_limit: i64
§disk_size: i64
§failed_sibling: String
§vault_error: String
§task_signal_reason: String
§task_signal: String
§generic_source: String
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskEvent
impl<'de> Deserialize<'de> for TaskEvent
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 TaskEvent
Auto Trait Implementations§
impl Freeze for TaskEvent
impl RefUnwindSafe for TaskEvent
impl Send for TaskEvent
impl Sync for TaskEvent
impl Unpin for TaskEvent
impl UnwindSafe for TaskEvent
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