Trait gio::prelude::InetAddressExt

source ·
pub trait InetAddressExt: IsA<InetAddress> + Sealed + 'static {
Show 24 methods // Provided methods fn equal(&self, other_address: &impl IsA<InetAddress>) -> bool { ... } fn family(&self) -> SocketFamily { ... } fn is_any(&self) -> bool { ... } fn is_link_local(&self) -> bool { ... } fn is_loopback(&self) -> bool { ... } fn is_mc_global(&self) -> bool { ... } fn is_mc_link_local(&self) -> bool { ... } fn is_mc_node_local(&self) -> bool { ... } fn is_mc_org_local(&self) -> bool { ... } fn is_mc_site_local(&self) -> bool { ... } fn is_multicast(&self) -> bool { ... } fn is_site_local(&self) -> bool { ... } fn native_size(&self) -> usize { ... } fn to_str(&self) -> GString { ... } fn connect_is_any_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_link_local_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_loopback_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_mc_global_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_mc_link_local_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_mc_node_local_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_mc_org_local_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_mc_site_local_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_multicast_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... } fn connect_is_site_local_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId { ... }
}
Expand description

Trait containing all InetAddress methods.

§Implementors

InetAddress

Provided Methods§

source

fn equal(&self, other_address: &impl IsA<InetAddress>) -> bool

source

fn family(&self) -> SocketFamily

Gets @self’s family

§Returns

@self’s family

source

fn 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.

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.

source

fn 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.

source

fn is_mc_global(&self) -> bool

Tests whether @self is a global multicast address.

§Returns

true if @self is a global multicast address.

Tests whether @self is a link-local multicast address.

§Returns

true if @self is a link-local multicast address.

source

fn 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.

source

fn 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.

source

fn 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.

source

fn is_multicast(&self) -> bool

Tests whether @self is a multicast address.

§Returns

true if @self is a multicast address.

source

fn 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.

source

fn 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 g_inet_address_to_bytes().

§Returns

the number of bytes used for the native version of @self.

source

fn to_str(&self) -> GString

Converts @self to string form.

§Returns

a representation of @self as a string, which should be freed after use.

source

fn connect_is_any_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_is_loopback_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_is_mc_global_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_is_mc_node_local_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_is_mc_org_local_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_is_mc_site_local_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_is_multicast_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

source

fn connect_is_site_local_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId

Object Safety§

This trait is not object safe.

Implementors§