#[repr(transparent)]pub struct NWUDPSessionState(pub NSInteger);
👎Deprecated: 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: NSInteger
👎Deprecated: Use
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
👎Deprecated: 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
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
👎Deprecated: Use
nw_connection_state_t
in Network framework instead, see deprecation notice in <NetworkExtension/NWUDPSession.h>pub const Ready: Self
👎Deprecated: 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
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
👎Deprecated: 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
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 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 · 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 NWUDPSessionState
impl PartialEq for NWUDPSessionState
Source§impl PartialOrd for NWUDPSessionState
impl PartialOrd for NWUDPSessionState
Source§impl RefEncode for NWUDPSessionState
impl RefEncode for NWUDPSessionState
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 NWUDPSessionState
impl Eq for NWUDPSessionState
impl StructuralPartialEq for NWUDPSessionState
Auto Trait Implementations§
impl Freeze for NWUDPSessionState
impl RefUnwindSafe for NWUDPSessionState
impl Send for NWUDPSessionState
impl Sync for NWUDPSessionState
impl Unpin for NWUDPSessionState
impl UnwindSafe for NWUDPSessionState
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.