Trait gio::prelude::InetAddressMaskExt
source · pub trait InetAddressMaskExt: IsA<InetAddressMask> + Sealed + 'static {
// Provided methods
fn equal(&self, mask2: &impl IsA<InetAddressMask>) -> bool { ... }
fn address(&self) -> InetAddress { ... }
fn family(&self) -> SocketFamily { ... }
fn length(&self) -> u32 { ... }
fn matches(&self, address: &impl IsA<InetAddress>) -> bool { ... }
fn to_str(&self) -> GString { ... }
fn set_address<P: IsA<InetAddress>>(&self, address: Option<&P>) { ... }
fn set_length(&self, length: u32) { ... }
fn connect_address_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_family_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_length_notify<F: Fn(&Self) + Send + Sync + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
fn equal(&self, mask2: &impl IsA<InetAddressMask>) -> bool
sourcefn address(&self) -> InetAddress
fn address(&self) -> InetAddress
sourcefn family(&self) -> SocketFamily
fn family(&self) -> SocketFamily
sourcefn matches(&self, address: &impl IsA<InetAddress>) -> bool
fn matches(&self, address: &impl IsA<InetAddress>) -> bool
sourcefn set_address<P: IsA<InetAddress>>(&self, address: Option<&P>)
fn set_address<P: IsA<InetAddress>>(&self, address: Option<&P>)
The base address.
sourcefn set_length(&self, length: u32)
fn set_length(&self, length: u32)
The prefix length, in bytes.
fn connect_address_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_family_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
fn connect_length_notify<F: Fn(&Self) + Send + Sync + 'static>( &self, f: F, ) -> SignalHandlerId
Object Safety§
This trait is not object safe.