[−][src]Trait gio::InetAddressExt
Required methods
fn equal<P: IsA<InetAddress>>(&self, other_address: &P) -> bool
Checks if two InetAddress
instances are equal, e.g. the same address.
other_address
Another InetAddress
.
Returns
true
if self
and other_address
are equal, false
otherwise.
fn get_family(&self) -> SocketFamily
fn get_is_any(&self) -> bool
Tests whether self
is the "any" address for its family.
Returns
true
if self
is the "any" address for its family.
fn get_is_link_local(&self) -> bool
Tests whether self
is a link-local address (that is, if it
identifies a host on a local network that is not connected to the
Internet).
Returns
true
if self
is a link-local address.
fn get_is_loopback(&self) -> bool
Tests whether self
is the loopback address for its family.
Returns
true
if self
is the loopback address for its family.
fn get_is_mc_global(&self) -> bool
Tests whether self
is a global multicast address.
Returns
true
if self
is a global multicast address.
fn get_is_mc_link_local(&self) -> bool
Tests whether self
is a link-local multicast address.
Returns
true
if self
is a link-local multicast address.
fn get_is_mc_node_local(&self) -> bool
Tests whether self
is a node-local multicast address.
Returns
true
if self
is a node-local multicast address.
fn get_is_mc_org_local(&self) -> bool
Tests whether self
is an organization-local multicast address.
Returns
true
if self
is an organization-local multicast address.
fn get_is_mc_site_local(&self) -> bool
Tests whether self
is a site-local multicast address.
Returns
true
if self
is a site-local multicast address.
fn get_is_multicast(&self) -> bool
fn get_is_site_local(&self) -> bool
Tests whether self
is a site-local address such as 10.0.0.1
(that is, the address identifies a host on a local network that can
not be reached directly from the Internet, but which may have
outgoing Internet connectivity via a NAT or firewall).
Returns
true
if self
is a site-local address.
fn get_native_size(&self) -> usize
Gets the size of the native raw binary address for self
. This
is the size of the data that you get from InetAddress::to_bytes
.
Returns
the number of bytes used for the native version of self
.
fn to_string(&self) -> GString
Converts self
to string form.
Returns
a representation of self
as a string, which should be
freed after use.
fn connect_property_is_any_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_link_local_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_loopback_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_mc_global_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_mc_link_local_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_mc_node_local_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_mc_org_local_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_mc_site_local_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_multicast_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_site_local_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<InetAddress>> InetAddressExt for O
[src]
fn equal<P: IsA<InetAddress>>(&self, other_address: &P) -> bool
[src]
fn get_family(&self) -> SocketFamily
[src]
fn get_is_any(&self) -> bool
[src]
fn get_is_link_local(&self) -> bool
[src]
fn get_is_loopback(&self) -> bool
[src]
fn get_is_mc_global(&self) -> bool
[src]
fn get_is_mc_link_local(&self) -> bool
[src]
fn get_is_mc_node_local(&self) -> bool
[src]
fn get_is_mc_org_local(&self) -> bool
[src]
fn get_is_mc_site_local(&self) -> bool
[src]
fn get_is_multicast(&self) -> bool
[src]
fn get_is_site_local(&self) -> bool
[src]
fn get_native_size(&self) -> usize
[src]
fn to_string(&self) -> GString
[src]
fn connect_property_is_any_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_link_local_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_loopback_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_mc_global_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_mc_link_local_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_mc_node_local_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_mc_org_local_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_mc_site_local_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_multicast_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId
fn connect_property_is_site_local_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId