[−][src]Struct erl_dist::epmd::NodeInfo
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(), }
[src]
Sets the node type of this NodeInfo
to Hidden
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NodeInfo
impl Send for NodeInfo
impl Sync for NodeInfo
impl Unpin for NodeInfo
impl UnwindSafe for NodeInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> TryAsRef<T> for T
[src]
fn try_as_ref(&self) -> Option<&T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> TryInto<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,