OxL Reference

method ClusterMember.serves

The node serves the service name (fully qualified, or just the type name).

Example:

oxl✓ checked in CI
fn main() io {
  let me = cluster.selfInfo()
  print("{me.serves("Bank")}")
}
Output
false
pub(api) fn serves(name: str) -> bool

Complexity. O(services).

Since. 1.0.0-beta

Parameters

NameType
namestr

Returns

bool

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/node.oxl:173

See also