pub trait UnixSocketAddressExt: IsA<UnixSocketAddress> + Sealed + 'static {
    // Provided methods
    fn address_type(&self) -> UnixSocketAddressType { ... }
    fn is_abstract(&self) -> bool { ... }
    fn path_len(&self) -> usize { ... }
    fn path_as_array(&self) -> Option<ByteArray> { ... }
}
Available on Unix only.
Expand description

Trait containing all UnixSocketAddress methods.

§Implementors

UnixSocketAddress

Provided Methods§

source

fn address_type(&self) -> UnixSocketAddressType

Gets @self’s type.

§Returns

a #GUnixSocketAddressType

source

fn is_abstract(&self) -> bool

Tests if @self is abstract.

§Deprecated

Use g_unix_socket_address_get_address_type()

§Returns

true if the address is abstract, false otherwise

source

fn path_len(&self) -> usize

Gets the length of @self’s path.

For details, see g_unix_socket_address_get_path().

§Returns

the length of the path

source

fn path_as_array(&self) -> Option<ByteArray>

Unix socket path, as a byte array.

Object Safety§

This trait is not object safe.

Implementors§