Skip to main content

SocketConnectableExt

Trait SocketConnectableExt 

Source
pub trait SocketConnectableExt: IsA<SocketConnectable> + 'static {
    // Provided methods
    fn enumerate(&self) -> SocketAddressEnumerator { ... }
    fn proxy_enumerate(&self) -> SocketAddressEnumerator { ... }
    fn to_string(&self) -> GString { ... }
}
Expand description

Provided Methods§

Source

fn enumerate(&self) -> SocketAddressEnumerator

Creates a #GSocketAddressEnumerator for @self.

§Returns

a new #GSocketAddressEnumerator.

Source

fn proxy_enumerate(&self) -> SocketAddressEnumerator

Creates a #GSocketAddressEnumerator for @self that will return a #GProxyAddress for each of its addresses that you must connect to via a proxy.

If @self does not implement g_socket_connectable_proxy_enumerate(), this will fall back to calling g_socket_connectable_enumerate().

§Returns

a new #GSocketAddressEnumerator.

Source

fn to_string(&self) -> GString

Format a #GSocketConnectable as a string. This is a human-readable format for use in debugging output, and is not a stable serialization format. It is not suitable for use in user interfaces as it exposes too much information for a user.

If the #GSocketConnectable implementation does not support string formatting, the implementation’s type name will be returned as a fallback.

§Returns

the formatted string

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§