[−][src]Struct concorde::Opinion
Participant
s store, exchange and update Opinion
s about the values in the
Cfg and Obj lattices as they attempt to come to an agreement.
The term Opinion
does not appear in the paper, but I've introduced it
(along with the field names in it) in an attempt to clarify the
presentation and bundle-together the 3 variables that are used as a group
in both local state and message bodies.
Fields
estimated_commit: StateLE<ObjLD, Peer>
called vₚ in the paper
proposed_configs: ArcOrdSet<CfgLE<Peer>>
called Tₚ in the paper
candidate_object: LatticeElt<ObjLD>
called objₚ in the paper
Implementations
impl<ObjLD: LatticeDef, Peer: Ord + Clone + Debug + Hash> Opinion<ObjLD, Peer> where
ObjLD::T: Clone + Debug + Default,
[src]
ObjLD::T: Clone + Debug + Default,
pub fn same_estimated_commit_config(&self, other: &Self) -> bool
[src]
pub fn same_estimated_and_proposed_configs(&self, other: &Self) -> bool
[src]
Trait Implementations
impl<ObjLD: LatticeDef, Peer: Ord + Clone + Debug + Hash> Clone for Opinion<ObjLD, Peer> where
ObjLD::T: Clone + Debug + Default,
[src]
ObjLD::T: Clone + Debug + Default,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<ObjLD: Debug + LatticeDef, Peer: Debug + Ord + Clone + Hash> Debug for Opinion<ObjLD, Peer> where
ObjLD::T: Clone + Debug + Default,
[src]
ObjLD::T: Clone + Debug + Default,
impl<ObjLD: LatticeDef, Peer: Ord + Clone + Debug + Hash> Default for Opinion<ObjLD, Peer> where
ObjLD::T: Clone + Debug + Default,
[src]
ObjLD::T: Clone + Debug + Default,
impl<ObjLD: LatticeDef, Peer: Ord + Clone + Debug + Hash> Eq for Opinion<ObjLD, Peer> where
ObjLD::T: Clone + Debug + Default + Eq,
[src]
ObjLD::T: Clone + Debug + Default + Eq,
impl<ObjLD: LatticeDef, Peer: Ord + Clone + Debug + Hash> Hash for Opinion<ObjLD, Peer> where
ObjLD::T: Clone + Debug + Default + Hash,
[src]
ObjLD::T: Clone + Debug + Default + Hash,
fn hash<H: Hasher>(&self, hstate: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<ObjLD: LatticeDef, Peer: Ord + Clone + Debug + Hash> Ord for Opinion<ObjLD, Peer> where
ObjLD::T: Clone + Debug + Default + Ord,
[src]
ObjLD::T: Clone + Debug + Default + Ord,
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<ObjLD: LatticeDef, Peer: Ord + Clone + Debug + Hash> PartialEq<Opinion<ObjLD, Peer>> for Opinion<ObjLD, Peer> where
ObjLD::T: Clone + Debug + Default + Eq,
[src]
ObjLD::T: Clone + Debug + Default + Eq,
impl<ObjLD: LatticeDef, Peer: Ord + Clone + Debug + Hash> PartialOrd<Opinion<ObjLD, Peer>> for Opinion<ObjLD, Peer> where
ObjLD::T: Clone + Debug + Default + Eq,
[src]
ObjLD::T: Clone + Debug + Default + Eq,
Auto Trait Implementations
impl<ObjLD, Peer> RefUnwindSafe for Opinion<ObjLD, Peer> where
Peer: RefUnwindSafe,
<ObjLD as LatticeDef>::T: RefUnwindSafe,
Peer: RefUnwindSafe,
<ObjLD as LatticeDef>::T: RefUnwindSafe,
impl<ObjLD, Peer> Send for Opinion<ObjLD, Peer> where
Peer: Send + Sync,
<ObjLD as LatticeDef>::T: Send,
Peer: Send + Sync,
<ObjLD as LatticeDef>::T: Send,
impl<ObjLD, Peer> Sync for Opinion<ObjLD, Peer> where
Peer: Send + Sync,
<ObjLD as LatticeDef>::T: Sync,
Peer: Send + Sync,
<ObjLD as LatticeDef>::T: Sync,
impl<ObjLD, Peer> Unpin for Opinion<ObjLD, Peer> where
Peer: Unpin,
<ObjLD as LatticeDef>::T: Unpin,
Peer: Unpin,
<ObjLD as LatticeDef>::T: Unpin,
impl<ObjLD, Peer> UnwindSafe for Opinion<ObjLD, Peer> where
Peer: RefUnwindSafe + UnwindSafe,
<ObjLD as LatticeDef>::T: UnwindSafe,
Peer: RefUnwindSafe + UnwindSafe,
<ObjLD as LatticeDef>::T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,