#[non_exhaustive]pub struct TaskAttemptResult {
pub status: Option<Status>,
pub exit_code: i32,
pub term_signal: i32,
/* private fields */
}Expand description
Result of a task attempt.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.status: Option<Status>Output only. The status of this attempt. If the status code is OK, then the attempt succeeded.
exit_code: i32Output only. The exit code of this attempt. This may be unset if the container was unable to exit cleanly with a code due to some other failure. See status field for possible failure details.
At most one of exit_code or term_signal will be set.
term_signal: i32Output only. Termination signal of the container. This is set to non-zero if the container is terminated by the system.
At most one of exit_code or term_signal will be set.
Implementations§
Source§impl TaskAttemptResult
impl TaskAttemptResult
pub fn new() -> Self
Sourcepub fn set_status<T>(self, v: T) -> Self
pub fn set_status<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_status<T>(self, v: Option<T>) -> Self
Sourcepub fn set_exit_code<T: Into<i32>>(self, v: T) -> Self
pub fn set_exit_code<T: Into<i32>>(self, v: T) -> Self
Sourcepub fn set_term_signal<T: Into<i32>>(self, v: T) -> Self
pub fn set_term_signal<T: Into<i32>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for TaskAttemptResult
impl Clone for TaskAttemptResult
Source§fn clone(&self) -> TaskAttemptResult
fn clone(&self) -> TaskAttemptResult
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 TaskAttemptResult
impl Debug for TaskAttemptResult
Source§impl Default for TaskAttemptResult
impl Default for TaskAttemptResult
Source§fn default() -> TaskAttemptResult
fn default() -> TaskAttemptResult
Returns the “default value” for a type. Read more
Source§impl Message for TaskAttemptResult
impl Message for TaskAttemptResult
Source§impl PartialEq for TaskAttemptResult
impl PartialEq for TaskAttemptResult
impl StructuralPartialEq for TaskAttemptResult
Auto Trait Implementations§
impl Freeze for TaskAttemptResult
impl RefUnwindSafe for TaskAttemptResult
impl Send for TaskAttemptResult
impl Sync for TaskAttemptResult
impl Unpin for TaskAttemptResult
impl UnwindSafe for TaskAttemptResult
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