fn selfInfo
This node as the registry sees it (roles, zone, labels, address, version, schema hash, load).
Example:
use std.cluster
fn main() io {
let me = cluster.selfInfo()
print("{me.isSelf} {me.state}")
}Output
true alive
pub(api) fn selfInfo() -> ClusterMemberThread safety. safe to call from any task; the value is a snapshot.
Since. 1.0.0-beta
Returns
Effects
none declared (pure unless the body says otherwise)
Defined in: std/cluster/cluster.oxl:51