data NodeId
Identity of a node of the cluster (cluster.self(), ctx.node). A single node is a cluster of one.
Example:
fn main() io {
let id: NodeId = cluster.self()
print("{id.name == cluster.self().name}")
}Output
true
@derive(Copy)
pub(api) data NodeIdSince. 1.0.0-beta
Fields
pub(api) name: str | The name of the node. |
Defined in: std/core/rpc.oxl:19