#[non_exhaustive]pub struct AgentReport {
pub results: Vec<AgentResult>,
}Expand description
Per-agent results of one lifecycle fan-out, one entry per configured agent in
plugin.agents order (agents excluded by an explicit install_into filter get
no entry — they were never asked for). The merged-Outcome lifecycle methods
collapse this to first-change-wins; a host that wants to tell its user which
agents were installed, skipped, or failed reads the *_report variants and
prints this (its Display is a ready setup summary, one line per agent).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.results: Vec<AgentResult>One entry per configured agent that was asked to run, in plugin.agents order.
Implementations§
Source§impl AgentReport
impl AgentReport
Sourcepub fn merged(&self) -> Outcome
pub fn merged(&self) -> Outcome
The first real change across the agents (a change outranks a no-op);
Outcome::NoOp when nothing changed. This is exactly what the merged
lifecycle methods (PluginHost::install, …) return on success.
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
True when no agent failed (skips are not failures).
Trait Implementations§
Source§impl Clone for AgentReport
impl Clone for AgentReport
Source§fn clone(&self) -> AgentReport
fn clone(&self) -> AgentReport
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AgentReport
impl Debug for AgentReport
Source§impl Display for AgentReport
impl Display for AgentReport
impl Eq for AgentReport
Source§impl PartialEq for AgentReport
impl PartialEq for AgentReport
impl StructuralPartialEq for AgentReport
Auto Trait Implementations§
impl Freeze for AgentReport
impl RefUnwindSafe for AgentReport
impl Send for AgentReport
impl Sync for AgentReport
impl Unpin for AgentReport
impl UnsafeUnpin for AgentReport
impl UnwindSafe for AgentReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.