Struct erl_dist::epmd::NodeInfo
[−]
[src]
pub struct NodeInfo { pub name: String, pub port: u16, pub node_type: NodeType, pub protocol: Protocol, pub highest_version: u16, pub lowest_version: u16, pub extra: Vec<u8>, }
Information on a distributed node that registered in the EPMD.
Fields
name: String
The node name.
port: u16
The port number on which the node accept connection requests.
node_type: NodeType
The node type.
protocol: Protocol
The protocol for communicating with the node.
highest_version: u16
The highest distribution version that this node can handle.
The value in Erlang/OTP R6B and later is 5.
lowest_version: u16
The lowest distribution version that this node can handle.
The value in Erlang/OTP R6B and later is 5.
extra: Vec<u8>
Extra field.
Methods
impl NodeInfo
[src]
fn new(name: &str, port: u16) -> Self
Makes a new NodeInfo
with the default parameters.
This is equivalent to the following code:
NodeInfo { name: name.to_string(), port: port, node_type: NodeType::Normal, protocol: Protocol::TcpIpV4, highest_version: 5, lowest_version: 5, extra: Vec::new(), }
Sets the node type of this NodeInfo
to Hidden
.
Trait Implementations
impl Debug for NodeInfo
[src]
impl Clone for NodeInfo
[src]
fn clone(&self) -> NodeInfo
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more