pub struct IPV4Consensus { /* private fields */ }
Expand description
An IPV4Source that takes a certain number of “votes” from other nodes on the network to make its decision.
Implementations§
Source§impl IPV4Consensus
impl IPV4Consensus
pub fn new(min_votes: usize, max_votes: usize) -> IPV4Consensus
Trait Implementations§
Source§impl Clone for IPV4Consensus
impl Clone for IPV4Consensus
Source§fn clone(&self) -> IPV4Consensus
fn clone(&self) -> IPV4Consensus
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 moreSource§impl IPV4AddrSource for IPV4Consensus
impl IPV4AddrSource for IPV4Consensus
Source§fn get_best_ipv4(&self) -> Option<Ipv4Addr>
fn get_best_ipv4(&self) -> Option<Ipv4Addr>
Retrieves the IPv4 address that the source thinks we should have,
or None if it can’t make a determination at this time. Read more
Auto Trait Implementations§
impl Freeze for IPV4Consensus
impl RefUnwindSafe for IPV4Consensus
impl Send for IPV4Consensus
impl Sync for IPV4Consensus
impl Unpin for IPV4Consensus
impl UnwindSafe for IPV4Consensus
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