OxL Reference

data NodeId

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

Example:

oxl✓ checked in CI
fn main() io {
  let id: NodeId = cluster.self()
  print("{id.name == cluster.self().name}")
}
Output
true
@derive(Copy)
pub(api) data NodeId

Since. 1.0.0-beta

Fields

pub(api) name: str

The name of the node.

Defined in: std/core/rpc.oxl:19

See also