[][src]Trait gio::NetworkAddressExt

pub trait NetworkAddressExt: 'static {
    fn get_hostname(&self) -> Option<GString>;
fn get_port(&self) -> u16;
fn get_scheme(&self) -> Option<GString>; }

Trait containing all NetworkAddress methods.

Implementors

NetworkAddress

Required methods

fn get_hostname(&self) -> Option<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

fn get_port(&self) -> u16

Gets self's port number

Returns

self's port (which may be 0)

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

Gets self's scheme

Returns

self's scheme (None if not built from URI)

Loading content...

Implementors

impl<O: IsA<NetworkAddress>> NetworkAddressExt for O[src]

Loading content...