fn buffered_message(&self, message_filter: &MessageFilter) -> Option<NetworkMsg<Block>> {
		let mut buffered_messages = self.buffered_messages.lock();
		for i in 0..buffered_messages.len() {
			if message_filter(&buffered_messages[i]) {
				return buffered_messages.remove(i);
			}
		}

		None
	}
/// Return oldest buffered message if it exists.
Return oldest buffered message if it exists.
Return oldest buffered message if it exists .
fn buffered_message(&self, message_filter: &MessageFilter) -> Option<NetworkMsg<Block>> {
		let mut buffered_messages = self.buffered_messages.lock();
		for i in 0..buffered_messages.len() {
			if message_filter(&buffered_messages[i]) {
				return buffered_messages.remove(i);
			}
		}
		None
	}
fn buffered_message ( & self , message_filter : & MessageFilter ) -> Option < NetworkMsg < Block > > { let mut buffered_messages = self . buffered_messages . lock ( ) ; for i in 0 .. buffered_messages . len ( ) { if message_filter ( & buffered_messages [ i ] ) { return buffered_messages . remove ( i ) ; } } None }
Return oldest buffered message if it exists.
Return oldest buffered message if it exists .
&self
message_filter
&MessageFilter
&self
message_filter
&MessageFilter