pub struct ParticipantStatus {
pub participant: ParticipantPid,
pub health: ParticipantHealth,
pub exited_at: Option<Instant>,
}Expand description
Participant liveness snapshot.
Fields§
§participant: ParticipantPidParticipant PID.
health: ParticipantHealthLast known participant liveness.
exited_at: Option<Instant>Instant the participant’s EXIT signal was observed, set when the participant is marked dead. Replayed to a late exit-notifier registrant so a crash that lands before registration is not lost.
Implementations§
Source§impl ParticipantStatus
impl ParticipantStatus
Sourcepub const fn alive(participant: ParticipantPid) -> Self
pub const fn alive(participant: ParticipantPid) -> Self
Creates an alive participant status.
Sourcepub const fn mark_dead_at(&mut self, at: Instant)
pub const fn mark_dead_at(&mut self, at: Instant)
Marks this participant dead, recording the instant its EXIT was observed.
Trait Implementations§
Source§impl Clone for ParticipantStatus
impl Clone for ParticipantStatus
Source§fn clone(&self) -> ParticipantStatus
fn clone(&self) -> ParticipantStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ParticipantStatus
Source§impl Debug for ParticipantStatus
impl Debug for ParticipantStatus
impl Eq for ParticipantStatus
Source§impl PartialEq for ParticipantStatus
impl PartialEq for ParticipantStatus
Source§fn eq(&self, other: &ParticipantStatus) -> bool
fn eq(&self, other: &ParticipantStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParticipantStatus
Auto Trait Implementations§
impl Freeze for ParticipantStatus
impl RefUnwindSafe for ParticipantStatus
impl Send for ParticipantStatus
impl Sync for ParticipantStatus
impl Unpin for ParticipantStatus
impl UnsafeUnpin for ParticipantStatus
impl UnwindSafe for ParticipantStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.