[][src]Struct erl_dist::epmd::NodeInfo

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]

pub fn new(name: &str, port: u16) -> Self[src]

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(),
}

pub fn set_hidden(&mut self) -> &mut Self[src]

Sets the node type of this NodeInfo to Hidden.

Trait Implementations

impl Clone for NodeInfo[src]

impl Debug for NodeInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryAsRef<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> TryInto<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,