pub struct HandlerOutcome {
pub exit_code: Option<i32>,
pub signal: Option<i32>,
pub timed_out: bool,
pub duration_ms: u64,
pub error: Option<String>,
}Expand description
What a workload’s handler for a lifecycle hook did.
The daemon runs <hooks dir>/<hook> when the image carries one. Output is not
here: /v1/health is readable without the agent token, so a handler’s output
goes to the daemon’s log instead.
Fields§
§exit_code: Option<i32>The handler’s exit code, or None when it was killed or never started.
signal: Option<i32>The signal that ended it, if one did.
timed_out: boolWhether the daemon killed it for exceeding its time budget.
duration_ms: u64Wall-clock milliseconds from spawn to exit or kill.
error: Option<String>Why the handler could not run at all: not executable, or spawn failed.
Implementations§
Trait Implementations§
Source§impl Clone for HandlerOutcome
impl Clone for HandlerOutcome
Source§impl Debug for HandlerOutcome
impl Debug for HandlerOutcome
Source§impl<'de> Deserialize<'de> for HandlerOutcome
impl<'de> Deserialize<'de> for HandlerOutcome
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 Eq for HandlerOutcome
Source§impl JsonSchema for HandlerOutcome
impl JsonSchema for HandlerOutcome
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for HandlerOutcome
impl PartialEq for HandlerOutcome
Source§impl Serialize for HandlerOutcome
impl Serialize for HandlerOutcome
impl StructuralPartialEq for HandlerOutcome
Auto Trait Implementations§
impl Freeze for HandlerOutcome
impl RefUnwindSafe for HandlerOutcome
impl Send for HandlerOutcome
impl Sync for HandlerOutcome
impl Unpin for HandlerOutcome
impl UnsafeUnpin for HandlerOutcome
impl UnwindSafe for HandlerOutcome
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