method ClusterApi.node
The id of the node called name; on a single node every other id is unreachable.
Example:
fn main() io {
print(cluster.node("store-2").name)
}Вывод
store-2
pub(api) fn node(name: str) -> NodeIdС версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
name | str |
Возвращает
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/node.oxl:265