pub trait InetAddressExtManual: Sealed + IsA<InetAddress> + 'static {
    // Provided method
    fn to_bytes(&self) -> Option<InetAddressBytes<'_>> { ... }
}

Provided Methods§

source

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 InetAddressExt::native_size().

Object Safety§

This trait is not object safe.

Implementors§