zebra_network::address_book_peers

Trait AddressBookPeers

source
pub trait AddressBookPeers {
    // Required method
    fn recently_live_peers(&self, now: DateTime<Utc>) -> Vec<MetaAddr>;
}
Expand description

Method signatures for getting MetaAddrs of recently live peers.

Required Methods§

source

fn recently_live_peers(&self, now: DateTime<Utc>) -> Vec<MetaAddr>

Return an Vec of peers we’ve seen recently, in reconnection attempt order.

Implementations on Foreign Types§

source§

impl AddressBookPeers for Arc<Mutex<AddressBook>>

Implementors§