pub trait Selector { // Required methods fn servers(&self) -> Vec<Server>; fn server(&self, key: &Key) -> Result<Server, MtopError>; }
Logic for picking a server to “own” a particular cache key.
Get a copy of all known servers.
Get the Server that owns the given key, or an error if there are no servers.
Server