pub fn with_gossip<F>(&self, f: F)
		where F: FnOnce(&mut ConsensusGossip<B>, &mut Context<B>) + Send + 'static
	{
		let _ = self
			.protocol_sender
			.send(ProtocolMsg::ExecuteWithGossip(Box::new(f)));
	}
/// Execute a closure with the consensus gossip.
Execute a closure with the consensus gossip.
Execute a closure with the consensus gossip .
pub fn with_gossip<F>(&self, f: F)
		where F: FnOnce(&mut ConsensusGossip<B>, &mut Context<B>) + Send + 'static
	{
		let _ = self
			.protocol_sender
			.send(ProtocolMsg::ExecuteWithGossip(Box::new(f)));
	}
pub fn with_gossip < F > ( & self , f : F ) where F : FnOnce ( & mut ConsensusGossip < B > , & mut Context < B > ) + Send + ' static { let _ = self . protocol_sender . send ( ProtocolMsg :: ExecuteWithGossip ( Box :: new ( f ) ) ) ; }
Execute a closure with the consensus gossip.
Execute a closure with the consensus gossip .
&self
f
F
&self
f
F