pub trait NetworkAddressExt: 'static {
    // Required methods
    fn hostname(&self) -> GString;
    fn port(&self) -> u16;
    fn scheme(&self) -> Option<GString>;
}
Expand description

Trait containing all NetworkAddress methods.

Implementors

NetworkAddress

Required 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)

Implementors§