pub struct NodeOverlay {
pub status: Option<NodeStatus>,
pub duration_ms: Option<u64>,
pub cache_tier: Option<String>,
pub flags: Vec<String>,
pub sublabel: Option<String>,
}Expand description
Per-node annotation folded into the rendered label and style.
Fields§
§status: Option<NodeStatus>How the node finished, driving the status color.
duration_ms: Option<u64>Total compute time across this node’s executions.
cache_tier: Option<String>Cache tier that served a hit (memory, local, remote).
flags: Vec<String>Health flags raised on this node (DEAD_CHANNELS, LEAKAGE, …).
sublabel: Option<String>Free-form extra label line (appended after the derived parts).
Implementations§
Source§impl NodeOverlay
impl NodeOverlay
Sourcepub fn sublabel_text(&self) -> Option<String>
pub fn sublabel_text(&self) -> Option<String>
The extra label line derived from this overlay, e.g.
"1.2s · mem hit · ⚠ LEAKAGE". None when there is nothing
to show.
Sourcepub fn style_class(&self) -> Option<&'static str>
pub fn style_class(&self) -> Option<&'static str>
The style class this node gets (mermaid classDef / graphviz fillcolor). Flags win over status: an unhealthy node must stand out even when it completed.
Trait Implementations§
Source§impl Clone for NodeOverlay
impl Clone for NodeOverlay
Source§fn clone(&self) -> NodeOverlay
fn clone(&self) -> NodeOverlay
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NodeOverlay
impl Debug for NodeOverlay
Source§impl Default for NodeOverlay
impl Default for NodeOverlay
Source§fn default() -> NodeOverlay
fn default() -> NodeOverlay
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeOverlay
impl<'de> Deserialize<'de> for NodeOverlay
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 NodeOverlay
impl RefUnwindSafe for NodeOverlay
impl Send for NodeOverlay
impl Sync for NodeOverlay
impl Unpin for NodeOverlay
impl UnsafeUnpin for NodeOverlay
impl UnwindSafe for NodeOverlay
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