Struct gns_sys::SteamNetworkPingLocation_t
source · [−]Expand description
Object that describes a “location” on the Internet with sufficient detail that we can reasonably estimate an upper bound on the ping between the two hosts, even if a direct route between the hosts is not possible, and the connection must be routed through the Steam Datagram Relay network. This does not contain any information that identifies the host. Indeed, if two hosts are in the same building or otherwise have nearly identical networking characteristics, then it’s valid to use the same location object for both of them.
NOTE: This object should only be used in the same process! Do not serialize it, send it over the wire, or persist it in a file or database! If you need to do that, convert it to a string representation using the methods in ISteamNetworkingUtils().
Fields
m_data: [uint8; 512]
Trait Implementations
sourceimpl Clone for SteamNetworkPingLocation_t
impl Clone for SteamNetworkPingLocation_t
sourcefn clone(&self) -> SteamNetworkPingLocation_t
fn clone(&self) -> SteamNetworkPingLocation_t
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 Debug for SteamNetworkPingLocation_t
impl Debug for SteamNetworkPingLocation_t
sourceimpl Default for SteamNetworkPingLocation_t
impl Default for SteamNetworkPingLocation_t
sourceimpl Hash for SteamNetworkPingLocation_t
impl Hash for SteamNetworkPingLocation_t
sourceimpl Ord for SteamNetworkPingLocation_t
impl Ord for SteamNetworkPingLocation_t
sourcefn cmp(&self, other: &SteamNetworkPingLocation_t) -> Ordering
fn cmp(&self, other: &SteamNetworkPingLocation_t) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SteamNetworkPingLocation_t> for SteamNetworkPingLocation_t
impl PartialEq<SteamNetworkPingLocation_t> for SteamNetworkPingLocation_t
sourcefn eq(&self, other: &SteamNetworkPingLocation_t) -> bool
fn eq(&self, other: &SteamNetworkPingLocation_t) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SteamNetworkPingLocation_t) -> bool
fn ne(&self, other: &SteamNetworkPingLocation_t) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SteamNetworkPingLocation_t> for SteamNetworkPingLocation_t
impl PartialOrd<SteamNetworkPingLocation_t> for SteamNetworkPingLocation_t
sourcefn partial_cmp(&self, other: &SteamNetworkPingLocation_t) -> Option<Ordering>
fn partial_cmp(&self, other: &SteamNetworkPingLocation_t) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for SteamNetworkPingLocation_t
impl Eq for SteamNetworkPingLocation_t
impl StructuralEq for SteamNetworkPingLocation_t
impl StructuralPartialEq for SteamNetworkPingLocation_t
Auto Trait Implementations
impl RefUnwindSafe for SteamNetworkPingLocation_t
impl Send for SteamNetworkPingLocation_t
impl Sync for SteamNetworkPingLocation_t
impl Unpin for SteamNetworkPingLocation_t
impl UnwindSafe for SteamNetworkPingLocation_t
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