pub trait InetAddressExtManual: IsA<InetAddress> + 'static {
// Provided method
fn to_bytes(&self) -> Option<InetAddressBytes<'_>> { ... }
}
Provided Methods§
Sourcefn to_bytes(&self) -> Option<InetAddressBytes<'_>>
fn to_bytes(&self) -> Option<InetAddressBytes<'_>>
Returns None
in case the address has a native size different than 4 and 16.
Gets the raw binary address data from @self.
§Returns
a pointer to an internal array of the bytes in @self, which should not be modified, stored, or freed. The size of this array can be gotten with g_inet_address_get_native_size().
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.