Enum steamworks_sys::ESNetSocketState
source · #[non_exhaustive]#[repr(i32)]pub enum ESNetSocketState {
k_ESNetSocketStateInvalid = 0,
k_ESNetSocketStateConnected = 1,
k_ESNetSocketStateInitiated = 10,
k_ESNetSocketStateLocalCandidatesFound = 11,
k_ESNetSocketStateReceivedRemoteCandidates = 12,
k_ESNetSocketStateChallengeHandshake = 15,
k_ESNetSocketStateDisconnecting = 21,
k_ESNetSocketStateLocalDisconnect = 22,
k_ESNetSocketStateTimeoutDuringConnect = 23,
k_ESNetSocketStateRemoteEndDisconnected = 24,
k_ESNetSocketStateConnectionBroken = 25,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
k_ESNetSocketStateInvalid = 0
k_ESNetSocketStateConnected = 1
k_ESNetSocketStateInitiated = 10
k_ESNetSocketStateLocalCandidatesFound = 11
k_ESNetSocketStateReceivedRemoteCandidates = 12
k_ESNetSocketStateChallengeHandshake = 15
k_ESNetSocketStateDisconnecting = 21
k_ESNetSocketStateLocalDisconnect = 22
k_ESNetSocketStateTimeoutDuringConnect = 23
k_ESNetSocketStateRemoteEndDisconnected = 24
k_ESNetSocketStateConnectionBroken = 25
Trait Implementations§
source§impl Clone for ESNetSocketState
impl Clone for ESNetSocketState
source§fn clone(&self) -> ESNetSocketState
fn clone(&self) -> ESNetSocketState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ESNetSocketState
impl Debug for ESNetSocketState
source§impl Hash for ESNetSocketState
impl Hash for ESNetSocketState
source§impl PartialEq for ESNetSocketState
impl PartialEq for ESNetSocketState
source§fn eq(&self, other: &ESNetSocketState) -> bool
fn eq(&self, other: &ESNetSocketState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ESNetSocketState
impl Eq for ESNetSocketState
impl StructuralPartialEq for ESNetSocketState
Auto Trait Implementations§
impl RefUnwindSafe for ESNetSocketState
impl Send for ESNetSocketState
impl Sync for ESNetSocketState
impl Unpin for ESNetSocketState
impl UnwindSafe for ESNetSocketState
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