fn sync_with(&mut self, disconnect: bool, disconnected: Option<HashSet<usize>>) {
		self.start();
		while self.route_single(disconnect, disconnected.clone(), &|_| true) {
			// give protocol a chance to do its maintain procedures
			self.peers().iter().for_each(|peer| peer.sync_step());
		}
	}
/// Perform synchronization until complete, if provided the
/// given nodes set are excluded from sync.
Perform synchronization until complete, if provided the
given nodes set are excluded from sync.
Perform synchronization until complete if provided the given nodes set are excluded from sync .
fn sync_with(&mut self, disconnect: bool, disconnected: Option<HashSet<usize>>) {
		self.start();
		while self.route_single(disconnect, disconnected.clone(), &|_| true) {
			// give protocol a chance to do its maintain procedures
			self.peers().iter().for_each(|peer| peer.sync_step());
		}
	}
fn sync_with ( & mut self , disconnect : bool , disconnected : Option < HashSet < usize > > ) { self . start ( ) ; while self . route_single ( disconnect , disconnected . clone ( ) , & | _ | true ) { // give protocol a chance to do its maintain procedures self . peers ( ) . iter ( ) . for_each ( | peer | peer . sync_step ( ) ) ; } }
Perform synchronization until complete, if provided the
given nodes set are excluded from sync.
Perform synchronization until complete if provided the given nodes set are excluded from sync .
&mut self
disconnect
bool
disconnected
Option<HashSet<usize>>
&mut self
disconnect
bool
disconnected
Option<HashSet<usize>>