pub trait Routable {
// Required methods
fn arg_idx(&self, idx: usize) -> Option<&[u8]>;
fn position(&self, candidate: &[u8]) -> Option<usize>;
// Provided method
fn command(&self) -> Option<Vec<u8>> { ... }
}
Available on crate feature
cluster
only.Expand description
Objects that implement this trait define a request that can be routed by a cluster client to different nodes in the cluster.