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

Methods

impl PreflistItem
[src]

Trait Implementations

impl Clone for PreflistItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PreflistItem
[src]

Formats the value using the given formatter.