pub struct NodeGovernanceReport {
pub node_id: u8,
pub tag: GovernanceTag,
pub robust_z: f32,
pub admitted: bool,
pub local_grammar_severity: u8,
}Expand description
Per-node governance report from a consensus round.
One report is issued per node participating in the current round.
Produced by swarm_governance_report.
Fields§
§node_id: u8Node identifier (matches the GrammarVote::node_id).
tag: GovernanceTagGovernance tag assigned to this node for this round.
robust_z: f32MAD-based robust z-score: |dsa − median_dsa| / robust_σ.
Values > KS_REJECT_THRESHOLD trigger ObserverQuarantined.
admitted: boolWhether this node’s vote was admitted to the consensus tally.
local_grammar_severity: u8Grammar state this node reported.
Implementations§
Source§impl NodeGovernanceReport
impl NodeGovernanceReport
Sourcepub fn requires_action(&self) -> bool
pub fn requires_action(&self) -> bool
Returns true if the governance tag requires operator attention.
Trait Implementations§
Source§impl Clone for NodeGovernanceReport
impl Clone for NodeGovernanceReport
Source§fn clone(&self) -> NodeGovernanceReport
fn clone(&self) -> NodeGovernanceReport
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 NodeGovernanceReport
impl Debug for NodeGovernanceReport
impl Copy for NodeGovernanceReport
Auto Trait Implementations§
impl Freeze for NodeGovernanceReport
impl RefUnwindSafe for NodeGovernanceReport
impl Send for NodeGovernanceReport
impl Sync for NodeGovernanceReport
impl Unpin for NodeGovernanceReport
impl UnsafeUnpin for NodeGovernanceReport
impl UnwindSafe for NodeGovernanceReport
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