#[repr(C, packed(4))]
pub struct SteamNetConnectionInfo_t {
Show 13 fields pub m_identityRemote: SteamNetworkingIdentity, pub m_nUserData: int64, pub m_hListenSocket: HSteamListenSocket, pub m_addrRemote: SteamNetworkingIPAddr, pub m__pad1: uint16, pub m_idPOPRemote: SteamNetworkingPOPID, pub m_idPOPRelay: SteamNetworkingPOPID, pub m_eState: ESteamNetworkingConnectionState, pub m_eEndReason: c_int, pub m_szEndDebug: [c_char; 128], pub m_szConnectionDescription: [c_char; 128], pub m_nFlags: c_int, pub reserved: [uint32; 63],
}
Expand description

Describe the state of a connection.

Fields§

§m_identityRemote: SteamNetworkingIdentity

Who is on the other end? Depending on the connection type and phase of the connection, we might not know

§m_nUserData: int64

Arbitrary user data set by the local application code

§m_hListenSocket: HSteamListenSocket

Handle to listen socket this was connected on, or k_HSteamListenSocket_Invalid if we initiated the connection

§m_addrRemote: SteamNetworkingIPAddr

Remote address. Might be all 0’s if we don’t know it, or if this is N/A. (E.g. Basically everything except direct UDP connection.)

§m__pad1: uint16§m_idPOPRemote: SteamNetworkingPOPID

What data center is the remote host in? (0 if we don’t know.)

§m_idPOPRelay: SteamNetworkingPOPID

What relay are we using to communicate with the remote host? (0 if not applicable.)

§m_eState: ESteamNetworkingConnectionState

High level state of the connection

§m_eEndReason: c_int

Basic cause of the connection termination or problem. See ESteamNetConnectionEnd for the values used

§m_szEndDebug: [c_char; 128]

Human-readable, but non-localized explanation for connection termination or problem. This is intended for debugging / diagnostic purposes only, not to display to users. It might have some details specific to the issue.

§m_szConnectionDescription: [c_char; 128]

Debug description. This includes the internal connection ID, connection type (and peer information), and any name given to the connection by the app. This string is used in various internal logging messages.

Note that the connection ID usually matches the HSteamNetConnection handle, but in certain cases with symmetric connections it might not.

§m_nFlags: c_int

Misc flags. Bitmask of k_nSteamNetworkConnectionInfoFlags_Xxxx

§reserved: [uint32; 63]

Internal stuff, room to change API easily

Trait Implementations§

source§

impl Clone for SteamNetConnectionInfo_t

source§

fn clone(&self) -> SteamNetConnectionInfo_t

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Copy for SteamNetConnectionInfo_t

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.