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")}")
}Output
false
pub(api) fn serves(name: str) -> boolComplexity. O(services).
Since. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
name | str |
Returns
bool
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/node.oxl:173