OxL Справочник OxL
РусскийEnglish

enum Prefer

Placement preference of cluster.pick.

Example:

oxl✓ проверяется в CI
fn main() io {
  match cluster.pick("Bank", prefer: .SameZone) {
    ClusterMember _ => print("found")
    none => print("none")
  }
}
Вывод
none
@derive(Copy)
pub(api) enum Prefer

С версии. 1.0.0-beta

Варианты

Any

Any node that serves the service.

SameZone

A node of the zone of this node when there is one.

Определено в: std/core/node.oxl:612

См. также