pub struct HookObservation {
pub hook: String,
pub fired_at: u64,
pub handler: Option<HandlerOutcome>,
}Expand description
One lifecycle-hook invocation, as the daemon observed it.
A daemon-reported fact in the same trust class as an exec’s exit code: the daemon’s word about a request it served, carrying nothing the guest printed.
Fields§
§hook: StringWhich hook, spelled the way the platform’s routes spell it: ready,
validate, run, suspend, resume, or terminate.
fired_at: u64Seconds since the epoch on the daemon’s clock when the invocation arrived.
The daemon’s clock rather than any caller’s, and recorded before the handler does any work — a run hook that was invoked and refused still fired.
handler: Option<HandlerOutcome>The workload handler’s outcome, when the image carries a handler for this hook. Absent on the wire otherwise, so an entry without one reads exactly as it did before handlers existed.
Trait Implementations§
Source§impl Clone for HookObservation
impl Clone for HookObservation
Source§impl Debug for HookObservation
impl Debug for HookObservation
Source§impl<'de> Deserialize<'de> for HookObservation
impl<'de> Deserialize<'de> for HookObservation
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 HookObservation
Source§impl JsonSchema for HookObservation
impl JsonSchema for HookObservation
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 HookObservation
impl PartialEq for HookObservation
Source§impl Serialize for HookObservation
impl Serialize for HookObservation
impl StructuralPartialEq for HookObservation
Auto Trait Implementations§
impl Freeze for HookObservation
impl RefUnwindSafe for HookObservation
impl Send for HookObservation
impl Sync for HookObservation
impl Unpin for HookObservation
impl UnsafeUnpin for HookObservation
impl UnwindSafe for HookObservation
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