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}")
}Вывод
true alive
pub(api) fn selfInfo() -> ClusterMemberПотокобезопасность. safe to call from any task; the value is a snapshot.
С версии. 1.0.0-beta
Возвращает
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/cluster/cluster.oxl:51