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}")
}Вывод
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