Struct gns_sys::SteamNetworkingIdentity
source · [−]#[repr(C, packed)]pub struct SteamNetworkingIdentity {
pub m_eType: ESteamNetworkingIdentityType,
pub m_cbSize: c_int,
pub __bindgen_anon_1: SteamNetworkingIdentity__bindgen_ty_2,
}
Expand description
An abstract way to represent the identity of a network host. All identities can be represented as simple string. Furthermore, this string representation is actually used on the wire in several places, even though it is less efficient, in order to facilitate forward compatibility. (Old client code can handle an identity type that it doesn’t understand.)
Fields
m_eType: ESteamNetworkingIdentityType
Type of identity.
m_cbSize: c_int
__bindgen_anon_1: SteamNetworkingIdentity__bindgen_ty_2
Implementations
sourceimpl SteamNetworkingIdentity
impl SteamNetworkingIdentity
pub unsafe fn Clear(&mut self)
pub unsafe fn IsInvalid(&self) -> bool
pub unsafe fn SetSteamID(&mut self, steamID: CSteamID)
pub unsafe fn GetSteamID(&self) -> CSteamID
pub unsafe fn SetSteamID64(&mut self, steamID: uint64)
pub unsafe fn GetSteamID64(&self) -> uint64
pub unsafe fn SetIPAddr(&mut self, addr: *const SteamNetworkingIPAddr)
pub unsafe fn GetIPAddr(&self) -> *const SteamNetworkingIPAddr
pub unsafe fn SetIPv4Addr(&mut self, nIPv4: uint32, nPort: uint16)
pub unsafe fn GetIPv4(&self) -> uint32
pub unsafe fn GetFakeIPType(&self) -> ESteamNetworkingFakeIPType
pub unsafe fn SetLocalHost(&mut self)
pub unsafe fn IsLocalHost(&self) -> bool
pub unsafe fn SetGenericString(&mut self, pszString: *const c_char) -> bool
pub unsafe fn GetGenericString(&self) -> *const c_char
pub unsafe fn SetGenericBytes(
&mut self,
data: *const c_void,
cbLen: size_t
) -> bool
pub unsafe fn GetGenericBytes(&self, cbLen: *mut c_int) -> *const uint8
pub unsafe fn ToString(&self, buf: *mut c_char, cbBuf: size_t)
pub unsafe fn ParseString(&mut self, pszStr: *const c_char) -> bool
Trait Implementations
sourceimpl Clone for SteamNetworkingIdentity
impl Clone for SteamNetworkingIdentity
sourcefn clone(&self) -> SteamNetworkingIdentity
fn clone(&self) -> SteamNetworkingIdentity
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 SteamNetworkingIdentity
impl Default for SteamNetworkingIdentity
impl Copy for SteamNetworkingIdentity
Auto Trait Implementations
impl RefUnwindSafe for SteamNetworkingIdentity
impl Send for SteamNetworkingIdentity
impl Sync for SteamNetworkingIdentity
impl Unpin for SteamNetworkingIdentity
impl UnwindSafe for SteamNetworkingIdentity
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