pub trait PeerId: PartialEq + Eq + Clone + Debug + Display + Hash + Codec + Send {
    // Provided method
    fn to_short_string(&self) -> String { ... }
}
Expand description

Represents the id of an arbitrary node.

Provided Methods§

source

fn to_short_string(&self) -> String

This function is used for logging. It implements a shorter version of to_string for ids implementing display.

Object Safety§

This trait is not object safe.

Implementors§