alias

Macro alias 

Source
macro_rules! alias {
    ($peer_id:expr) => { ... };
    ($peer_id:expr, $len:expr) => { ... };
}
Expand description

A macro that creates a shorter representation of a PeerId. Mostly useful in logging scenarios.

NOTE: This macro can panic if not used with a valid PeerId, or provided with a len > 52.