Struct hypercore::Peer [−][src]
pub struct Peer {}A peer on the network.
Methods
impl Peer[src]
impl Peerpub fn have(&mut self, _msg: &Message)[src]
pub fn have(&mut self, _msg: &Message)pub fn unhave(&mut self, _msg: &Message)[src]
pub fn unhave(&mut self, _msg: &Message)pub fn update(&mut self)[src]
pub fn update(&mut self)Update.
Trait Implementations
impl Debug for Peer[src]
impl Debug for Peerfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Peer[src]
impl Clone for Peerfn clone(&self) -> Peer[src]
fn clone(&self) -> PeerReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl PartialEq for Peer[src]
impl PartialEq for Peer