udp2p_traits::routable

Trait Routable

Source
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;
}

Required Associated Types§

Required Methods§

Source

fn get_id(&self) -> Self::Id

Source

fn get_key(&self) -> Self::Key

Source

fn get_address(&self) -> SocketAddr

Implementors§