gio::prelude

Trait UnixSocketAddressExtManual

Source
pub trait UnixSocketAddressExtManual: IsA<UnixSocketAddress> + 'static {
    // Provided method
    fn path(&self) -> Option<UnixSocketAddressPath<'_>> { ... }
}

Provided Methods§

Source

fn path(&self) -> Option<UnixSocketAddressPath<'_>>

Gets @self’s path, or for abstract sockets the “name”.

Guaranteed to be zero-terminated, but an abstract socket may contain embedded zeros, and thus you should use g_unix_socket_address_get_path_len() to get the true length of this string.

§Returns

the path for @self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§