#[repr(C)]pub struct ENetAddress {
pub host: enet_uint32,
pub port: enet_uint16,
}
Expand description
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§
Source§impl Clone for ENetAddress
impl Clone for ENetAddress
Source§fn clone(&self) -> ENetAddress
fn clone(&self) -> ENetAddress
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ENetAddress
impl RefUnwindSafe for ENetAddress
impl Send for ENetAddress
impl Sync for ENetAddress
impl Unpin for ENetAddress
impl UnwindSafe for ENetAddress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more