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

Trait containing all NetworkAddress methods.

Implementors

NetworkAddress

Required Methods

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

Returns

self’s hostname

Gets self’s port number

Returns

self’s port (which may be 0)

Gets self’s scheme

Returns

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

Implementors