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
Provided Methods§
fn equal(&self, other_address: &impl IsA<InetAddress>) -> bool
sourcefn family(&self) -> SocketFamily
fn family(&self) -> SocketFamily
sourcefn is_link_local(&self) -> bool
fn is_link_local(&self) -> bool
sourcefn is_loopback(&self) -> bool
fn is_loopback(&self) -> bool
sourcefn is_mc_global(&self) -> bool
fn is_mc_global(&self) -> bool
sourcefn is_mc_link_local(&self) -> bool
fn is_mc_link_local(&self) -> bool
sourcefn is_mc_node_local(&self) -> bool
fn is_mc_node_local(&self) -> bool
sourcefn is_mc_org_local(&self) -> bool
fn is_mc_org_local(&self) -> bool
sourcefn is_mc_site_local(&self) -> bool
fn is_mc_site_local(&self) -> bool
sourcefn is_multicast(&self) -> bool
fn is_multicast(&self) -> bool
sourcefn is_site_local(&self) -> bool
fn is_site_local(&self) -> bool
sourcefn native_size(&self) -> usize
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.
sourcefn to_str(&self) -> GString
fn to_str(&self) -> GString
Converts @self to string form.
§Returns
a representation of @self as a string, which should be freed after use.
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
Object Safety§
This trait is not object safe.