1use std::net::SocketAddr; 2use udp2p_utils::utils::Distance; 3 4pub trait Routable: Distance { 5 type Id; 6 type Key; 7 8 fn get_id(&self) -> Self::Id; 9 fn get_key(&self) -> Self::Key; 10 fn get_address(&self) -> SocketAddr; 11}