#[repr(transparent)]pub struct NWTCPConnectionState(pub NSInteger);Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWTCPConnection.h>
Expand description
Defined connection states. New types may be defined in the future.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerUse nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWTCPConnection.h>
Implementations§
Source§impl NWTCPConnectionState
impl NWTCPConnectionState
pub const Invalid: Self
Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWTCPConnection.h>
pub const Connecting: Self
Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWTCPConnection.h>
Sourcepub const Waiting: Self
👎Deprecated: Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWTCPConnection.h>
pub const Waiting: Self
Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWTCPConnection.h>
waiting for better condition(s) before trying again.
Sourcepub const Connected: Self
👎Deprecated: Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWTCPConnection.h>
pub const Connected: Self
Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWTCPConnection.h>
to transfer data. If TLS is in use, the TLS handshake would have finished when the connection is in this state.
Sourcepub const Disconnected: Self
👎Deprecated: Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWTCPConnection.h>
pub const Disconnected: Self
Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWTCPConnection.h>
possible to transfer data. The application should call cancellation method to clean up resources when the connection is in this state.
Trait Implementations§
Source§impl Clone for NWTCPConnectionState
impl Clone for NWTCPConnectionState
Source§fn clone(&self) -> NWTCPConnectionState
fn clone(&self) -> NWTCPConnectionState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NWTCPConnectionState
impl Debug for NWTCPConnectionState
Source§impl Encode for NWTCPConnectionState
impl Encode for NWTCPConnectionState
Source§impl Hash for NWTCPConnectionState
impl Hash for NWTCPConnectionState
Source§impl Ord for NWTCPConnectionState
impl Ord for NWTCPConnectionState
Source§fn cmp(&self, other: &NWTCPConnectionState) -> Ordering
fn cmp(&self, other: &NWTCPConnectionState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for NWTCPConnectionState
impl PartialEq for NWTCPConnectionState
Source§fn eq(&self, other: &NWTCPConnectionState) -> bool
fn eq(&self, other: &NWTCPConnectionState) -> bool
self and other values to be equal, and is used by ==.