Struct dpt::DPTNode
[−]
[src]
pub struct DPTNode { pub address: IpAddr, pub tcp_port: u16, pub udp_port: u16, pub id: H512, }
DPT node used by a DPT stream
Fields
address: IpAddr
tcp_port: u16
udp_port: u16
id: H512
Methods
impl DPTNode
[src]
fn tcp_addr(&self) -> SocketAddr
[src]
The TCP socket address of this node
fn udp_addr(&self) -> SocketAddr
[src]
The UDP socket address of this node
fn from_url(url: &Url) -> Result<DPTNode, DPTNodeParseError>
[src]
Trait Implementations
impl Debug for DPTNode
[src]
impl Clone for DPTNode
[src]
fn clone(&self) -> DPTNode
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for DPTNode
[src]
fn eq(&self, __arg_0: &DPTNode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DPTNode) -> bool
[src]
This method tests for !=
.