[][src]Struct hypercore::Peer

pub struct Peer {}

A peer on the network.

Methods

impl Peer[src]

pub fn have(&mut self, _msg: &Message)[src]

Check if the peer has a message.

pub fn unhave(&mut self, _msg: &Message)[src]

Tell a peer you no longer have a message.

pub fn update(&mut self)[src]

Update.

Trait Implementations

impl Clone for Peer[src]

impl Debug for Peer[src]

impl PartialEq<Peer> for Peer[src]

impl StructuralPartialEq for Peer[src]

Auto Trait Implementations

impl RefUnwindSafe for Peer

impl Send for Peer

impl Sync for Peer

impl Unpin for Peer

impl UnwindSafe for Peer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.