pub trait InetAddressExtManual {
    // Required method
    fn to_bytes(&self) -> Option<InetAddressBytes<'_>>;
}

Required Methods§

source

fn to_bytes(&self) -> Option<InetAddressBytes<'_>>

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().

Implementors§