pub struct EdgeEvidence {
pub from_symbol_id: String,
pub to_symbol_id: String,
pub static_known: bool,
pub confirmations: u64,
pub prior: f64,
pub last_trace_id: Option<String>,
pub last_observed_at: Option<DateTime<Utc>>,
}Expand description
Accumulated evidence for one directed call edge.
Fields§
§from_symbol_id: String§to_symbol_id: String§static_known: boolWhether the static call graph contains this edge.
confirmations: u64Runtime observations of the call.
prior: f64Frozen prior the confirmations update.
last_trace_id: Option<String>§last_observed_at: Option<DateTime<Utc>>Implementations§
Source§impl EdgeEvidence
impl EdgeEvidence
Sourcepub fn static_edge(from: &str, to: &str) -> Self
pub fn static_edge(from: &str, to: &str) -> Self
A fresh record for a static-graph edge (no runtime evidence yet).
Sourcepub fn runtime_only_edge(from: &str, to: &str) -> Self
pub fn runtime_only_edge(from: &str, to: &str) -> Self
A fresh record for an edge first seen at runtime (missed by static).
Sourcepub fn confirm(&mut self, trace_id: &str, at: DateTime<Utc>)
pub fn confirm(&mut self, trace_id: &str, at: DateTime<Utc>)
Record one runtime observation of this edge.
Sourcepub fn mark_static_known(&mut self)
pub fn mark_static_known(&mut self)
If a static edge is later confirmed at runtime, mark it known (a runtime-only edge that also turns out to be static).
Sourcepub fn confidence(&self) -> f64
pub fn confidence(&self) -> f64
Derived confidence in [0, 1] — the same Laplace/Beta derivation as
effect confidence (edges only ever accumulate confirmations, never
contradictions, since absence is not evidence against an edge).
Trait Implementations§
Source§impl Clone for EdgeEvidence
impl Clone for EdgeEvidence
Source§impl Debug for EdgeEvidence
impl Debug for EdgeEvidence
Source§impl<'de> Deserialize<'de> for EdgeEvidence
impl<'de> Deserialize<'de> for EdgeEvidence
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
Source§impl PartialEq for EdgeEvidence
impl PartialEq for EdgeEvidence
Source§impl Serialize for EdgeEvidence
impl Serialize for EdgeEvidence
impl StructuralPartialEq for EdgeEvidence
Auto Trait Implementations§
impl Freeze for EdgeEvidence
impl RefUnwindSafe for EdgeEvidence
impl Send for EdgeEvidence
impl Sync for EdgeEvidence
impl Unpin for EdgeEvidence
impl UnsafeUnpin for EdgeEvidence
impl UnwindSafe for EdgeEvidence
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