gio::prelude

Trait NetworkAddressExt

Source
pub trait NetworkAddressExt: IsA<NetworkAddress> + 'static {
    // Provided methods
    fn hostname(&self) -> GString { ... }
    fn port(&self) -> u16 { ... }
    fn scheme(&self) -> Option<GString> { ... }
}
Expand description

Trait containing all NetworkAddress methods.

§Implementors

NetworkAddress

Provided Methods§

Source

fn hostname(&self) -> GString

Gets @self’s hostname. This might be either UTF-8 or ASCII-encoded, depending on what @self was created with.

§Returns

@self’s hostname

Source

fn port(&self) -> u16

Gets @self’s port number

§Returns

@self’s port (which may be 0)

Source

fn scheme(&self) -> Option<GString>

Gets @self’s scheme

§Returns

@self’s scheme (None if not built from URI)

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§