pub struct GnsConnection(/* private fields */);Implementations§
Source§impl GnsConnection
impl GnsConnection
Sourcepub const fn from_raw(handle: HSteamNetConnection) -> Self
pub const fn from_raw(handle: HSteamNetConnection) -> Self
Wraps a raw HSteamNetConnection handle.
GameNetworkingSockets validates the handle when you use it. It rejects any handle that does not match a live connection.
Trait Implementations§
Source§impl Clone for GnsConnection
impl Clone for GnsConnection
Source§fn clone(&self) -> GnsConnection
fn clone(&self) -> GnsConnection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GnsConnection
Source§impl Debug for GnsConnection
impl Debug for GnsConnection
Source§impl Default for GnsConnection
impl Default for GnsConnection
Source§fn default() -> GnsConnection
fn default() -> GnsConnection
Returns the “default value” for a type. Read more
impl Eq for GnsConnection
Source§impl Hash for GnsConnection
impl Hash for GnsConnection
Source§impl Ord for GnsConnection
impl Ord for GnsConnection
Source§fn cmp(&self, other: &GnsConnection) -> Ordering
fn cmp(&self, other: &GnsConnection) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GnsConnection
impl PartialEq for GnsConnection
Source§impl PartialOrd for GnsConnection
impl PartialOrd for GnsConnection
impl StructuralPartialEq for GnsConnection
Auto Trait Implementations§
impl Freeze for GnsConnection
impl RefUnwindSafe for GnsConnection
impl Send for GnsConnection
impl Sync for GnsConnection
impl Unpin for GnsConnection
impl UnsafeUnpin for GnsConnection
impl UnwindSafe for GnsConnection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more