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

data NodeId

Identity of a node of the cluster (cluster.self(), ctx.node). A single node is a cluster of one.

Example:

oxl✓ проверяется в CI
fn main() io {
  let id: NodeId = cluster.self()
  print("{id.name == cluster.self().name}")
}
Вывод
true
@derive(Copy)
pub(api) data NodeId

С версии. 1.0.0-beta

Поля

pub(api) name: str

The name of the node.

Определено в: std/core/rpc.oxl:19

См. также