pub fn wait_sync(&self) -> Result<(), RecvError> {
		loop {
			match self.protocol_to_network_receiver.receiver().recv() {
				Ok(NetworkMsg::Synchronized) => return Ok(()),
				Err(error) => return Err(error),
				Ok(msg) => self.buffered_messages.lock().push_back(msg),
			}
		}
	}
/// Wait until synchronization response is generated by the protocol.
Wait until synchronization response is generated by the protocol.
Wait until synchronization response is generated by the protocol .
pub fn wait_sync(&self) -> Result<(), RecvError> {
		loop {
			match self.protocol_to_network_receiver.receiver().recv() {
				Ok(NetworkMsg::Synchronized) => return Ok(()),
				Err(error) => return Err(error),
				Ok(msg) => self.buffered_messages.lock().push_back(msg),
			}
		}
	}
pub fn wait_sync ( & self ) -> Result < ( ) , RecvError > { loop { match self . protocol_to_network_receiver . receiver ( ) . recv ( ) { Ok ( NetworkMsg :: Synchronized ) => return Ok ( ( ) ) , Err ( error ) => return Err ( error ) , Ok ( msg ) => self . buffered_messages . lock ( ) . push_back ( msg ) , } } }
Wait until synchronization response is generated by the protocol.
Wait until synchronization response is generated by the protocol .
&self
&self