[][src]Trait blockchain_network_simple::NetworkHandle

pub trait NetworkHandle: NetworkEnvironment {
    fn send(&mut self, peer: &Self::PeerId, message: Self::Message);
fn broadcast(&mut self, message: Self::Message); }

Required methods

fn send(&mut self, peer: &Self::PeerId, message: Self::Message)

fn broadcast(&mut self, message: Self::Message)

Loading content...

Implementors

impl<P: Eq + Hash + Clone, B: Clone, S: Clone> NetworkHandle for LocalNetworkHandle<P, B, S>[src]

Loading content...