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

Trait containing all InetAddressMask methods.

§Implementors

InetAddressMask

Provided Methods§

source

fn equal(&self, mask2: &impl IsA<InetAddressMask>) -> bool

source

fn address(&self) -> InetAddress

Gets @self’s base address

§Returns

@self’s base address

source

fn family(&self) -> SocketFamily

Gets the #GSocketFamily of @self’s address

§Returns

the #GSocketFamily of @self’s address

source

fn length(&self) -> u32

Gets @self’s length

§Returns

@self’s length

source

fn matches(&self, address: &impl IsA<InetAddress>) -> bool

Tests if @address falls within the range described by @self.

§address

a #GInetAddress

§Returns

whether @address falls within the range described by @self.

source

fn to_str(&self) -> GString

Converts @self back to its corresponding string form.

§Returns

a string corresponding to @self.

source

fn set_address<P: IsA<InetAddress>>(&self, address: Option<&P>)

The base address.

source

fn set_length(&self, length: u32)

The prefix length, in bytes.

source

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

source

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

source

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

Object Safety§

This trait is not object safe.

Implementors§