pub struct ConsensusResult {
pub response: Response,
pub votes: usize,
pub total_voters: usize,
pub confidence: f64,
}Expand description
Result of consensus voting
Fields§
§response: ResponseThe winning response
votes: usizeNumber of votes for this response
total_voters: usizeTotal number of voters
confidence: f64Confidence (votes / total)
Trait Implementations§
Source§impl Clone for ConsensusResult
impl Clone for ConsensusResult
Source§fn clone(&self) -> ConsensusResult
fn clone(&self) -> ConsensusResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ConsensusResult
impl RefUnwindSafe for ConsensusResult
impl Send for ConsensusResult
impl Sync for ConsensusResult
impl Unpin for ConsensusResult
impl UnwindSafe for ConsensusResult
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