method ClusterApi.nodes
All nodes the membership knows, this one included (§12.3); dead and departed ones stay listed for a while with their state. Only this node outside a cluster.
Example:
fn main() io {
print("{cluster.nodes().len()}")
}Output
1
pub(api) fn nodes() -> List<ClusterMember>Complexity. O(n) in the number of nodes.
Since. 1.0.0-beta
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/node.oxl:299