[][src]Struct membership::ProtocolConfig

pub struct ProtocolConfig {
    pub protocol_period: u64,
    pub ack_timeout: u8,
    pub num_indirect: u8,
    pub suspect_timeout: u64,
    pub join_retry_timeout: u64,
}

Configuration for the membership protocol.

Fields

protocol_period: u64

Number of seconds between checking new member.

ack_timeout: u8

Number of seconds to wait for response from a peer.

Must be significantly (e.g. four times) smaller than protocol_period.

num_indirect: u8

Maximum number of members selected for indirect probing.

When probed member does not respond in ack_timeout, num_indirect other members are asked to check the probed member.

suspect_timeout: u64

Number of seconds to keep member as suspected before removing it.

join_retry_timeout: u64

Number of seconds until failed join request will be retried.

Trait Implementations

impl Default for ProtocolConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,