Trait sn_routing::PeerUtils[][src]

pub trait PeerUtils {
    fn new(name: XorName, addr: SocketAddr) -> Self;
fn set_reachable(&mut self, reachable: bool);
fn name(&self) -> &XorName;
fn addr(&self) -> &SocketAddr;
fn age(&self) -> u8;
fn is_reachable(&self) -> bool; }
Expand description

Required methods

Creates a new Peer given Name, SocketAddr.

Set the reachable flag.

Returns the XorName of the peer.

Returns the SocketAddr.

Returns the age.

Returns the reachable flag.

Implementations on Foreign Types

Creates a new Peer given Name, SocketAddr.

Set the reachable flag.

Returns the XorName of the peer.

Returns the SocketAddr.

Returns the age.

Returns the reachable flag.

Implementors