DhtNode

Trait DhtNode 

Source
pub trait DhtNode:
    Debug
    + Clone
    + Send
    + Sync
    + PartialEq
    + Eq
    + Hash {
    // Required methods
    fn id(&self) -> Hash;
    fn addresses(&self) -> Vec<Url>;
}

Required Methods§

Source

fn id(&self) -> Hash

Source

fn addresses(&self) -> Vec<Url>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§