[][src]Trait gio::NetworkServiceExt

pub trait NetworkServiceExt: 'static {
    fn get_domain(&self) -> Option<GString>;
fn get_protocol(&self) -> Option<GString>;
fn get_scheme(&self) -> Option<GString>;
fn get_service(&self) -> Option<GString>;
fn set_scheme(&self, scheme: &str);
fn connect_property_scheme_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all NetworkService methods.

Implementors

NetworkService

Required methods

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

Gets the domain that self serves. This might be either UTF-8 or ASCII-encoded, depending on what self was created with.

Returns

self's domain name

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

Gets self's protocol name (eg, "tcp").

Returns

self's protocol name

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

Get's the URI scheme used to resolve proxies. By default, the service name is used as scheme.

Returns

self's scheme name

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

Gets self's service name (eg, "ldap").

Returns

self's service name

fn set_scheme(&self, scheme: &str)

Set's the URI scheme used to resolve proxies. By default, the service name is used as scheme.

scheme

a URI scheme

fn connect_property_scheme_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<NetworkService>> NetworkServiceExt for O[src]

Loading content...