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

pub trait TableReplication: Send + Sync {
    fn read_nodes(&self, hash: &Hash) -> Vec<Uuid>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
;
fn read_quorum(&self) -> usize;
fn write_nodes(&self, hash: &Hash) -> Vec<Uuid>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
;
fn write_quorum(&self) -> usize;
fn max_write_errors(&self) -> usize;
fn partition_of(&self, hash: &Hash) -> Partition;
fn partitions(&self) -> Vec<(Partition, Hash)>
Notable traits for Vec<u8, A>
impl<A> Write for Vec<u8, A> where
    A: Allocator
; }
Expand description

Trait to describe how a table shall be replicated

Required methods

Which nodes to send read requests to

Responses needed to consider a read succesfull

Which nodes to send writes to

Responses needed to consider a write succesfull

Get partition for data with given hash

List of existing partitions

Implementors