Trait gio::prelude::NetworkServiceExt [−][src]
pub trait NetworkServiceExt: 'static { fn domain(&self) -> GString; fn protocol(&self) -> GString; fn scheme(&self) -> GString; fn service(&self) -> GString; fn set_scheme(&self, scheme: &str); fn connect_scheme_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId; }
Expand description
Required methods
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
Gets the URI scheme used to resolve proxies. By default, the service name is used as scheme.
Returns
self
’s scheme name
fn set_scheme(&self, scheme: &str)
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_scheme_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId