enum Prefer
Placement preference of cluster.pick.
Example:
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