enum PickBy
How cluster.pick chooses among the nodes that serve a service.
Example:
fn main() io {
let by: PickBy = .First
match cluster.pick("Bank", by: by) {
ClusterMember _ => print("found")
none => print("none")
}
}Вывод
none
@derive(Copy)
pub(api) enum PickByС версии. 1.0.0-beta
Варианты
LeastLoad | The node with the lowest reported load. |
First | The first node found. |
Определено в: std/core/node.oxl:591