Struct gns_sys::SteamNetworkingIPAddr
source · [−]#[repr(C, packed)]pub struct SteamNetworkingIPAddr {
pub __bindgen_anon_1: SteamNetworkingIPAddr__bindgen_ty_2,
pub m_port: uint16,
}
Expand description
Store an IP and port. IPv6 is always used; IPv4 is represented using “IPv4-mapped” addresses: IPv4 aa.bb.cc.dd => IPv6 ::ffff:aabb:ccdd (RFC 4291 section 2.5.5.2.)
Fields
__bindgen_anon_1: SteamNetworkingIPAddr__bindgen_ty_2
m_port: uint16
Implementations
sourceimpl SteamNetworkingIPAddr
impl SteamNetworkingIPAddr
pub unsafe fn Clear(&mut self)
pub unsafe fn IsIPv6AllZeros(&self) -> bool
pub unsafe fn SetIPv6(&mut self, ipv6: *const uint8, nPort: uint16)
pub unsafe fn SetIPv4(&mut self, nIP: uint32, nPort: uint16)
pub unsafe fn IsIPv4(&self) -> bool
pub unsafe fn GetIPv4(&self) -> uint32
pub unsafe fn SetIPv6LocalHost(&mut self, nPort: uint16)
pub unsafe fn IsLocalHost(&self) -> bool
pub unsafe fn GetFakeIPType(&self) -> ESteamNetworkingFakeIPType
Trait Implementations
sourceimpl Clone for SteamNetworkingIPAddr
impl Clone for SteamNetworkingIPAddr
sourcefn clone(&self) -> SteamNetworkingIPAddr
fn clone(&self) -> SteamNetworkingIPAddr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Default for SteamNetworkingIPAddr
impl Default for SteamNetworkingIPAddr
impl Copy for SteamNetworkingIPAddr
Auto Trait Implementations
impl RefUnwindSafe for SteamNetworkingIPAddr
impl Send for SteamNetworkingIPAddr
impl Sync for SteamNetworkingIPAddr
impl Unpin for SteamNetworkingIPAddr
impl UnwindSafe for SteamNetworkingIPAddr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more