pub trait Routable: Distance {
type Id;
type Key;
// Required methods
fn get_id(&self) -> Self::Id;
fn get_key(&self) -> Self::Key;
fn get_address(&self) -> SocketAddr;
}
pub trait Routable: Distance {
type Id;
type Key;
// Required methods
fn get_id(&self) -> Self::Id;
fn get_key(&self) -> Self::Key;
fn get_address(&self) -> SocketAddr;
}