pub struct NodeState {
pub id: NodeId,
pub name: String,
pub slug: NodeSlug,
pub registry: Arc<Registry>,
pub connected_at: Instant,
pub trace_gauge_cache: Mutex<HashMap<String, GaugeVec>>,
}Expand description
All state associated with one connected node
Fields§
§id: NodeIdThe node’s connection address (internal key — not shown to users)
name: StringHuman-friendly display name from the node’s NodeInfo DataPoint
(niName). Falls back to the raw NodeId if the DataPoint request
fails or returns an empty name.
slug: NodeSlugURL-safe slug derived from name, used in Prometheus routes and as
the log subdirectory name
registry: Arc<Registry>This node’s dedicated Prometheus registry
connected_at: InstantWhen this node connected
trace_gauge_cache: Mutex<HashMap<String, GaugeVec>>Cache of Prometheus gauges derived from incoming trace object fields
Implementations§
Auto Trait Implementations§
impl !Freeze for NodeState
impl !RefUnwindSafe for NodeState
impl Send for NodeState
impl Sync for NodeState
impl Unpin for NodeState
impl UnsafeUnpin for NodeState
impl !UnwindSafe for NodeState
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> 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