pub trait UnixSocketAddressExt: IsA<UnixSocketAddress> + '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
Provided Methods§
Sourcefn address_type(&self) -> UnixSocketAddressType
fn address_type(&self) -> UnixSocketAddressType
Sourcefn is_abstract(&self) -> bool
fn is_abstract(&self) -> bool
Sourcefn path_len(&self) -> usize
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
Sourcefn path_as_array(&self) -> Option<ByteArray>
fn path_as_array(&self) -> Option<ByteArray>
Unix socket path, as a byte array.
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.