OxL Справочник OxL
РусскийEnglish

fn selfInfo

This node as the registry sees it (roles, zone, labels, address, version, schema hash, load).

Example:

oxl✓ проверяется в CI
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

Возвращает

ClusterMember

Эффекты

не объявлены (чистая, пока тело не говорит иное)

Определено в: std/cluster/cluster.oxl:51

См. также