gio::prelude

Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§