Struct viewstamped_replication::Replica
source · pub struct Replica<S, FD, ID> { /* private fields */ }Implementations§
source§impl<S, FD, ID> Replica<S, FD, ID>where
S: Service,
FD: FailureDetector,
ID: IdleDetector,
impl<S, FD, ID> Replica<S, FD, ID>where
S: Service,
FD: FailureDetector,
ID: IdleDetector,
pub fn new( service: S, failure_detector: FD, idle_detector: ID, configuration: Vec<SocketAddr>, index: usize, commit_queue_threshold: usize, prepare_queue_threshold_multiplier: usize ) -> Self
pub fn address(&self) -> SocketAddr
pub fn poll(&mut self, envelope: Option<Envelope>, outbound: &mut impl Outbound)
Trait Implementations§
Auto Trait Implementations§
impl<S, FD, ID> RefUnwindSafe for Replica<S, FD, ID>
impl<S, FD, ID> Send for Replica<S, FD, ID>
impl<S, FD, ID> Sync for Replica<S, FD, ID>
impl<S, FD, ID> Unpin for Replica<S, FD, ID>
impl<S, FD, ID> UnwindSafe for Replica<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