use bip_util::bt::PeerId;
pub trait DiscoveryInfo {
fn port(&self) -> u16;
fn peer_id(&self) -> PeerId;
}
impl<'a, T> DiscoveryInfo for &'a T where T: DiscoveryInfo {
fn port(&self) -> u16 {
(*self).port()
}
fn peer_id(&self) -> PeerId {
(*self).peer_id()
}
}