pub enum Timer<T> {
    ProbeRandomMember(TimerToken),
    SendIndirectProbe {
        probed_id: T,
        token: TimerToken,
    },
    ChangeSuspectToDown {
        member_id: T,
        incarnation: Incarnation,
        token: TimerToken,
    },
    RemoveDown(T),
}
Expand description

Timer is an event that’s scheduled by a Runtime. You won’t need to construct or understand these, just ensure a timely delivery.

Variants

ProbeRandomMember(TimerToken)

Pick a random active member and initiate the probe cycle.

SendIndirectProbe

Fields

probed_id: T

The current member being probed

token: TimerToken

See TimerToken

Send indirect probes if the direct one hasn’t completed yet.

ChangeSuspectToDown

Fields

member_id: T

Target member identity

incarnation: Incarnation

Its Incarnation the moment the suspicion was raised. If the member refutes the suspicion (by increasing its Incarnation), this won’t match and it won’t be declared Down.

token: TimerToken

See TimerToken

Transitions member T from Suspect to Down if the incarnation is still the same.

RemoveDown(T)

Forgets about dead member T, allowing them to join the cluster again with the same identity.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more