Struct viewstamped_replication::ReplicaBuilder
source · pub struct ReplicaBuilder<S, FD, ID> { /* private fields */ }Implementations§
source§impl<S, FD, ID> ReplicaBuilder<S, FD, ID>
impl<S, FD, ID> ReplicaBuilder<S, FD, ID>
pub fn new() -> Self
sourcepub fn with_prepare_multiplier(self, multiplier: usize) -> Self
pub fn with_prepare_multiplier(self, multiplier: usize) -> Self
Sets the multiplier for the prepare queue depth threshold.
Values of 0 are treated as use the default.
pub fn with_commit_queue_threshold(self, threshold: usize) -> Self
pub fn with_replica(self, address: SocketAddr) -> Self
pub fn with_service(self, service: S) -> Self
pub fn with_failure_detector(self, detector: FD) -> Self
pub fn with_idle_detector(self, detector: ID) -> Self
pub fn build(self) -> Result<Vec<Replica<S, FD, ID>>, Self>
Trait Implementations§
source§impl<S: Clone, FD: Clone, ID: Clone> Clone for ReplicaBuilder<S, FD, ID>
impl<S: Clone, FD: Clone, ID: Clone> Clone for ReplicaBuilder<S, FD, ID>
source§fn clone(&self) -> ReplicaBuilder<S, FD, ID>
fn clone(&self) -> ReplicaBuilder<S, FD, ID>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<S, FD, ID> RefUnwindSafe for ReplicaBuilder<S, FD, ID>
impl<S, FD, ID> Send for ReplicaBuilder<S, FD, ID>
impl<S, FD, ID> Sync for ReplicaBuilder<S, FD, ID>
impl<S, FD, ID> Unpin for ReplicaBuilder<S, FD, ID>
impl<S, FD, ID> UnwindSafe for ReplicaBuilder<S, FD, ID>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more