method ClusterMember.serves
The node serves the service name (fully qualified, or just the type name).
Example:
fn main() io {
let me = cluster.selfInfo()
print("{me.serves("Bank")}")
}Вывод
false
pub(api) fn serves(name: str) -> boolСложность. O(services).
С версии. 1.0.0-beta
Параметры
| Имя | Тип |
|---|---|
name | str |
Возвращает
bool
Эффекты
не объявлены (чистая, пока тело не говорит иное)
Определено в: std/core/node.oxl:173