Trait NodeId

Source
pub trait NodeId {
    // Required method
    fn node_id(&self) -> String;
}
Expand description

Trait for services that have a node identifier in distributed systems.

This trait is implemented by services that participate in distributed traceability operations and need to identify themselves to remote peers. The node ID is typically used in provenance records and logging to track which middleware instance processed specific operations.

Required Methods§

Source

fn node_id(&self) -> String

Returns the unique identifier for this node in the distributed system.

Node IDs should be unique across the distributed deployment and persistent across service restarts to maintain consistent provenance records.

Implementors§