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,

source

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

source

pub fn address(&self) -> SocketAddr

source

pub fn poll(&mut self, envelope: Option<Envelope>, outbound: &mut impl Outbound)

Trait Implementations§

source§

impl<S: Debug, FD: Debug, ID: Debug> Debug for Replica<S, FD, ID>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<S, FD, ID> RefUnwindSafe for Replica<S, FD, ID>

§

impl<S, FD, ID> Send for Replica<S, FD, ID>
where FD: Send, ID: Send, S: Send,

§

impl<S, FD, ID> Sync for Replica<S, FD, ID>
where FD: Sync, ID: Sync, S: Sync,

§

impl<S, FD, ID> Unpin for Replica<S, FD, ID>
where FD: Unpin, ID: Unpin, S: Unpin,

§

impl<S, FD, ID> UnwindSafe for Replica<S, FD, ID>
where FD: UnwindSafe, ID: UnwindSafe, S: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.