pub struct TaskResult {Show 16 fields
pub task_id: usize,
pub result: Value,
pub attempt: usize,
pub max_attempts: usize,
pub name: String,
pub function: String,
pub success: bool,
pub resolved_args_str: String,
pub started: Option<DateTime<Utc>>,
pub ended: Option<DateTime<Utc>>,
pub elapsed: i64,
pub premature_failure: bool,
pub premature_failure_error_str: String,
pub is_branch: bool,
pub is_sensor: bool,
pub exit_code: Option<i32>,
}Fields§
§task_id: usize§result: Value§attempt: usize§max_attempts: usize§name: String§function: String§success: bool§resolved_args_str: String§started: Option<DateTime<Utc>>§ended: Option<DateTime<Utc>>§elapsed: i64§premature_failure: bool§premature_failure_error_str: String§is_branch: bool§is_sensor: bool§exit_code: Option<i32>Implementations§
Source§impl TaskResult
impl TaskResult
pub fn needs_retry(&self) -> bool
pub fn premature_error( task_id: usize, attempt: usize, max_attempts: usize, name: String, function_name: String, premature_failure_error_str: String, is_branch: bool, is_sensor: bool, started: Option<DateTime<Utc>>, ended: Option<DateTime<Utc>>, ) -> Self
pub fn print_task_result(&self, template_args: Value, log: String)
Trait Implementations§
Source§impl Clone for TaskResult
impl Clone for TaskResult
Source§fn clone(&self) -> TaskResult
fn clone(&self) -> TaskResult
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 TaskResult
impl Debug for TaskResult
Source§impl<'de> Deserialize<'de> for TaskResult
impl<'de> Deserialize<'de> for TaskResult
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
Auto Trait Implementations§
impl Freeze for TaskResult
impl RefUnwindSafe for TaskResult
impl Send for TaskResult
impl Sync for TaskResult
impl Unpin for TaskResult
impl UnwindSafe for TaskResult
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