pub trait InetSocketAddressExt: IsA<InetSocketAddress> + Sealed + 'static {
    // Provided methods
    fn address(&self) -> InetAddress { ... }
    fn flowinfo(&self) -> u32 { ... }
    fn port(&self) -> u16 { ... }
    fn scope_id(&self) -> u32 { ... }
}
Expand description

Trait containing all InetSocketAddress methods.

§Implementors

InetSocketAddress, ProxyAddress

Provided Methods§

source

fn address(&self) -> InetAddress

Gets @self’s #GInetAddress.

§Returns

the #GInetAddress for @self, which must be g_object_ref()’d if it will be stored

source

fn flowinfo(&self) -> u32

Gets the sin6_flowinfo field from @self, which must be an IPv6 address.

§Returns

the flowinfo field

source

fn port(&self) -> u16

Gets @self’s port.

§Returns

the port for @self

source

fn scope_id(&self) -> u32

Gets the sin6_scope_id field from @self, which must be an IPv6 address.

§Returns

the scope id field

Object Safety§

This trait is not object safe.

Implementors§