pub enum DetectorInd {
Suspect {
node: NodeId,
},
Restore {
node: NodeId,
},
}Expand description
A detector’s indication, in the port’s terms.
The layer above matches on this rather than on the detector’s own indication type, which is how one leader detector serves both.
Variants§
Suspect
node is suspected of having crashed. A perfect detector means it; an eventually perfect
one may be wrong and may take it back.
Fields
§
node: NodeIdRestore
node is no longer suspected. Raised only by a detector that can observe its own mistake.
Fields
§
node: NodeIdTrait Implementations§
Source§impl Clone for DetectorInd
impl Clone for DetectorInd
Source§fn clone(&self) -> DetectorInd
fn clone(&self) -> DetectorInd
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 DetectorInd
Source§impl Debug for DetectorInd
impl Debug for DetectorInd
impl Eq for DetectorInd
Source§impl PartialEq for DetectorInd
impl PartialEq for DetectorInd
Source§fn eq(&self, other: &DetectorInd) -> bool
fn eq(&self, other: &DetectorInd) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DetectorInd
Auto Trait Implementations§
impl Freeze for DetectorInd
impl RefUnwindSafe for DetectorInd
impl Send for DetectorInd
impl Sync for DetectorInd
impl Unpin for DetectorInd
impl UnsafeUnpin for DetectorInd
impl UnwindSafe for DetectorInd
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