Struct nat_traversal::MappedSocketAddr
[−]
[src]
pub struct MappedSocketAddr { pub addr: SocketAddr, pub nat_restricted: bool, }
A socket address obtained through some mapping technique.
Fields
addr: SocketAddr
The mapped address
nat_restricted: bool
Indicated that hole punching needs to be used for an external client to connect to this
address. nat_restricted
will not be set if this is a fully mapped address such as the
external address of a full-cone NAT or one obtained through UPnP.
Trait Implementations
impl Decodable for MappedSocketAddr
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<MappedSocketAddr, __D::Error>
impl Encodable for MappedSocketAddr
[src]
impl Clone for MappedSocketAddr
[src]
fn clone(&self) -> MappedSocketAddr
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
impl Eq for MappedSocketAddr
[src]
impl PartialEq for MappedSocketAddr
[src]
fn eq(&self, __arg_0: &MappedSocketAddr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MappedSocketAddr) -> bool
This method tests for !=
.