Struct riak::preflist::PreflistItem
[−]
[src]
pub struct PreflistItem { pub partition: i64, pub node: String, pub is_primary: bool, }
PreflistItem
represents a Riak partition where a bucket/key combination belong, whether or
not that is the primary partition, and what the name of the node the partition lives on.
It can be used to optimize client requests for specific pieces keys by pointing out where the key ultimately lives so you can reach it more directly and avoid passing through an intermediary.
Fields
partition: i64
node: String
is_primary: bool
Methods
impl PreflistItem
[src]
fn new(partition: i64, node: &str, is_primary: bool) -> PreflistItem
Trait Implementations
impl Clone for PreflistItem
[src]
fn clone(&self) -> PreflistItem
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more