#[repr(transparent)]pub struct NWUDPSessionState(pub NSInteger);Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWUDPSession.h>
Expand description
UDP session state values
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerUse nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWUDPSession.h>
Implementations§
Source§impl NWUDPSessionState
impl NWUDPSessionState
pub const Invalid: Self
Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWUDPSession.h>
Sourcepub const Waiting: Self
👎Deprecated: Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWUDPSession.h>
pub const Waiting: Self
Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWUDPSession.h>
attempting to make the session ready.
pub const Preparing: Self
Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWUDPSession.h>
pub const Ready: Self
Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWUDPSession.h>
Sourcepub const Failed: Self
👎Deprecated: Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWUDPSession.h>
pub const Failed: Self
Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWUDPSession.h>
at this time, either due to problems with the path or the client rejecting the endpoints.
pub const Cancelled: Self
Use nw_connection_state_t in Network framework instead, see deprecation notice in <NetworkExtension/NWUDPSession.h>
Trait Implementations§
Source§impl Clone for NWUDPSessionState
impl Clone for NWUDPSessionState
Source§fn clone(&self) -> NWUDPSessionState
fn clone(&self) -> NWUDPSessionState
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 NWUDPSessionState
impl Debug for NWUDPSessionState
Source§impl Encode for NWUDPSessionState
impl Encode for NWUDPSessionState
Source§impl Hash for NWUDPSessionState
impl Hash for NWUDPSessionState
Source§impl Ord for NWUDPSessionState
impl Ord for NWUDPSessionState
Source§fn cmp(&self, other: &NWUDPSessionState) -> Ordering
fn cmp(&self, other: &NWUDPSessionState) -> 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 NWUDPSessionState
impl PartialEq for NWUDPSessionState
Source§fn eq(&self, other: &NWUDPSessionState) -> bool
fn eq(&self, other: &NWUDPSessionState) -> bool
self and other values to be equal, and is used by ==.