Struct hypercore::Peer [−][src]
pub struct Peer {}
A peer on the network.
Methods
impl Peer
[src]
impl Peer
pub 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 Peer
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Peer
[src]
impl Clone for Peer
fn clone(&self) -> Peer
[src]
fn clone(&self) -> Peer
Returns 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