pub enum AssessmentMessage {
ReportAvailable {
node_id: String,
project_name: String,
timestamp: String,
files_scanned: usize,
finding_count: usize,
coherence_score: f64,
},
RequestReport {
requesting_node: String,
},
FullReport {
report: AssessmentReport,
},
Gossip {
node_id: String,
project_name: String,
last_assessment: Option<String>,
finding_count: usize,
analyzer_count: usize,
},
FindingDiff {
node_id: String,
project_name: String,
timestamp: String,
findings_new: Vec<Finding>,
findings_resolved: Vec<Finding>,
complexity_delta: i64,
coherence_delta: f64,
finding_count: usize,
analyzer_count: usize,
},
}Expand description
Messages exchanged between assessment services across the mesh.
Variants§
ReportAvailable
Broadcast: a new assessment completed on this node.
Fields
RequestReport
Request: fetch the full latest report from a peer.
FullReport
Response: the full assessment report.
Fields
§
report: AssessmentReportGossip
Gossip: lightweight status exchange (sent periodically).
Fields
FindingDiff
Diff push: only findings that changed since the previous assessment (WEFT-117). Prefer this over full-report flood when a prior report exists so peers receive deltas only.
Trait Implementations§
Source§impl Clone for AssessmentMessage
impl Clone for AssessmentMessage
Source§impl Debug for AssessmentMessage
impl Debug for AssessmentMessage
Source§impl<'de> Deserialize<'de> for AssessmentMessage
impl<'de> Deserialize<'de> for AssessmentMessage
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
Auto Trait Implementations§
impl Freeze for AssessmentMessage
impl RefUnwindSafe for AssessmentMessage
impl Send for AssessmentMessage
impl Sync for AssessmentMessage
impl Unpin for AssessmentMessage
impl UnsafeUnpin for AssessmentMessage
impl UnwindSafe for AssessmentMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more