Struct enet_sys::_ENetAddress
[−]
[src]
#[repr(C)]pub struct _ENetAddress { pub host: enet_uint32, pub port: enet_uint16, }
Portable internet address structure.
The host must be specified in network byte-order, and the port must be in host byte-order. The constant ENET_HOST_ANY may be used to specify the default server host. The constant ENET_HOST_BROADCAST may be used to specify the broadcast address (255.255.255.255). This makes sense for enet_host_connect, but not for enet_host_create. Once a server responds to a broadcast, the address is updated from ENET_HOST_BROADCAST to the server's actual IP address.
Fields
host: enet_uint32
port: enet_uint16
Trait Implementations
impl Debug for _ENetAddress
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Copy for _ENetAddress
[src]
impl Clone for _ENetAddress
[src]
fn clone(&self) -> _ENetAddress
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more