Enum async_dnssd::ScopedSocketAddr [−][src]
pub enum ScopedSocketAddr {
V4 {
address: Ipv4Addr,
port: u16,
scope_id: u32,
},
V6 {
address: Ipv6Addr,
port: u16,
scope_id: u32,
},
}Expand description
IP address with port and “scope id” (even for IPv4)
When converting to SocketAddr the “scope id” is lost for IPv4; when converting to
SocketAddrV6 it uses to_ipv6_mapped() for IPv4 addresses.
Variants
V4
IPv4 target
V6
IPv6 target
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ScopedSocketAddr
impl Send for ScopedSocketAddr
impl Sync for ScopedSocketAddr
impl Unpin for ScopedSocketAddr
impl UnwindSafe for ScopedSocketAddr
Blanket Implementations
Mutably borrows from an owned value. Read more
