#[repr(transparent)]pub struct NWTCPConnectionState(pub NSInteger);
👎Deprecated: 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: NSInteger
👎Deprecated: Use
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
👎Deprecated: Use
nw_connection_state_t
in Network framework instead, see deprecation notice in <NetworkExtension/NWTCPConnection.h>pub const Connecting: Self
👎Deprecated: 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
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
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
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
Returns a duplicate 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 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 · 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
Source§impl PartialEq for NWTCPConnectionState
impl PartialEq for NWTCPConnectionState
Source§impl PartialOrd for NWTCPConnectionState
impl PartialOrd for NWTCPConnectionState
Source§impl RefEncode for NWTCPConnectionState
impl RefEncode for NWTCPConnectionState
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for NWTCPConnectionState
impl Eq for NWTCPConnectionState
impl StructuralPartialEq for NWTCPConnectionState
Auto Trait Implementations§
impl Freeze for NWTCPConnectionState
impl RefUnwindSafe for NWTCPConnectionState
impl Send for NWTCPConnectionState
impl Sync for NWTCPConnectionState
impl Unpin for NWTCPConnectionState
impl UnwindSafe for NWTCPConnectionState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.