Struct steamworks_sys::SteamNetworkingIdentity[][src]

#[repr(C, packed)]pub struct SteamNetworkingIdentity {
    pub m_eType: ESteamNetworkingIdentityType,
    pub m_cbSize: c_int,
    pub __bindgen_anon_1: SteamNetworkingIdentity__bindgen_ty_2,
}

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]

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]

impl Copy for SteamNetworkingIdentity[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.