Struct steamworks_sys::SteamNetworkingIdentity [−][src]
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
impl SteamNetworkingIdentity
[src]
pub unsafe fn Clear(&mut self)
[src]
pub unsafe fn IsInvalid(&self) -> bool
[src]
pub unsafe fn SetSteamID(&mut self, steamID: CSteamID)
[src]
pub unsafe fn GetSteamID(&self) -> CSteamID
[src]
pub unsafe fn SetSteamID64(&mut self, steamID: uint64)
[src]
pub unsafe fn GetSteamID64(&self) -> uint64
[src]
pub unsafe fn SetIPAddr(&mut self, addr: *const SteamNetworkingIPAddr)
[src]
pub unsafe fn GetIPAddr(&self) -> *const SteamNetworkingIPAddr
[src]
pub unsafe fn SetLocalHost(&mut self)
[src]
pub unsafe fn IsLocalHost(&self) -> bool
[src]
pub unsafe fn SetGenericString(&mut self, pszString: *const c_char) -> bool
[src]
pub unsafe fn GetGenericString(&self) -> *const c_char
[src]
pub unsafe fn SetGenericBytes(
&mut self,
data: *const c_void,
cbLen: size_t
) -> bool
[src]
&mut self,
data: *const c_void,
cbLen: size_t
) -> bool
pub unsafe fn GetGenericBytes(&self, cbLen: *mut c_int) -> *const uint8
[src]
pub unsafe fn ToString(&self, buf: *mut c_char, cbBuf: size_t)
[src]
pub unsafe fn ParseString(&mut self, pszStr: *const c_char) -> bool
[src]
Trait Implementations
impl Clone for SteamNetworkingIdentity
[src]
fn clone(&self) -> SteamNetworkingIdentity
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SteamNetworkingIdentity
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,