pub trait ToNodeAddr {
    fn to_node_addr(&self, default_port: u16) -> Option<NodeAddr>;
}
Expand description

Trait allowing generic function arguments for application-level implementations knowing default protocol port

Required Methods

Constructs NodeAddr from an internal data with a default port put in place when the port details were not given is such structures as PartialNodeAddr

Returns

Implementations on Foreign Types

Implementors