Trait garage_table::replication::TableReplication[][src]

pub trait TableReplication: Send + Sync {
    fn read_nodes(&self, hash: &Hash) -> Vec<UUID>;
fn read_quorum(&self) -> usize;
fn write_nodes(&self, hash: &Hash) -> Vec<UUID>;
fn write_quorum(&self) -> usize;
fn max_write_errors(&self) -> usize;
fn partition_of(&self, hash: &Hash) -> Partition;
fn partitions(&self) -> Vec<(Partition, Hash)>; }

Required methods

fn read_nodes(&self, hash: &Hash) -> Vec<UUID>[src]

fn read_quorum(&self) -> usize[src]

fn write_nodes(&self, hash: &Hash) -> Vec<UUID>[src]

fn write_quorum(&self) -> usize[src]

fn max_write_errors(&self) -> usize[src]

fn partition_of(&self, hash: &Hash) -> Partition[src]

fn partitions(&self) -> Vec<(Partition, Hash)>[src]

Loading content...

Implementors

Loading content...