Struct asio::ip::IpAddrV6
[−]
[src]
pub struct IpAddrV6 { // some fields omitted }
implements IP version 6 style addresses.
Methods
impl IpAddrV6
[src]
fn new(a: u16, b: u16, c: u16, d: u16, e: u16, f: u16, g: u16, h: u16, scope_id: u32) -> Self
fn any() -> Self
fn loopback() -> Self
fn scope_id(&self) -> u32
fn from_bytes(addr: &[u8; 16], scope_id: u32) -> Self
fn is_unspecified(&self) -> bool
fn is_loopback(&self) -> bool
fn is_link_local(&self) -> bool
fn is_site_local(&self) -> bool
fn is_v4_mapped(&self) -> bool
fn is_v4_compatible(&self) -> bool
fn is_multicast(&self) -> bool
fn is_multicast_global(&self) -> bool
fn is_multicast_link_local(&self) -> bool
fn is_multicast_node_local(&self) -> bool
fn is_multicast_org_local(&self) -> bool
fn is_multicast_site_local(&self) -> bool
fn to_bytes(&self) -> [u8; 16]
fn to_v4(&self) -> Option<IpAddrV4>
fn v4_mapped(addr: &IpAddrV4) -> Self
fn v4_compatible(addr: &IpAddrV4) -> Option<Self>
Trait Implementations
impl Hash for IpAddrV6
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl PartialOrd for IpAddrV6
[src]
fn partial_cmp(&self, __arg_0: &IpAddrV6) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &IpAddrV6) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &IpAddrV6) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &IpAddrV6) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &IpAddrV6) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for IpAddrV6
[src]
fn cmp(&self, __arg_0: &IpAddrV6) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl PartialEq for IpAddrV6
[src]
fn eq(&self, __arg_0: &IpAddrV6) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IpAddrV6) -> bool
This method tests for !=
.
impl Eq for IpAddrV6
[src]
impl Clone for IpAddrV6
[src]
fn clone(&self) -> IpAddrV6
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