#[repr(transparent)]pub struct SCNetworkConnectionStatus(pub i32);Available on crate feature
SCNetworkConnection only.Expand description
Status of the network connection. This status is intended to be generic and high level. An extended status, specific to the type of network connection is also available for applications that need additonal information.
The network connection refers to an invalid service.
The network connection is disconnected.
The network connection is connecting.
The network connection is connected.
The network connection is disconnecting.
See also Apple’s documentation
Tuple Fields§
§0: i32Implementations§
Source§impl SCNetworkConnectionStatus
impl SCNetworkConnectionStatus
pub const Invalid: Self
pub const Disconnected: Self
pub const Connecting: Self
pub const Connected: Self
pub const Disconnecting: Self
Trait Implementations§
Source§impl Clone for SCNetworkConnectionStatus
impl Clone for SCNetworkConnectionStatus
Source§fn clone(&self) -> SCNetworkConnectionStatus
fn clone(&self) -> SCNetworkConnectionStatus
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 SCNetworkConnectionStatus
impl Debug for SCNetworkConnectionStatus
Source§impl Encode for SCNetworkConnectionStatus
Available on crate feature objc2 only.
impl Encode for SCNetworkConnectionStatus
Available on crate feature
objc2 only.Source§impl Hash for SCNetworkConnectionStatus
impl Hash for SCNetworkConnectionStatus
Source§impl Ord for SCNetworkConnectionStatus
impl Ord for SCNetworkConnectionStatus
Source§fn cmp(&self, other: &SCNetworkConnectionStatus) -> Ordering
fn cmp(&self, other: &SCNetworkConnectionStatus) -> 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 PartialOrd for SCNetworkConnectionStatus
impl PartialOrd for SCNetworkConnectionStatus
Source§impl RefEncode for SCNetworkConnectionStatus
Available on crate feature objc2 only.
impl RefEncode for SCNetworkConnectionStatus
Available on crate feature
objc2 only.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 SCNetworkConnectionStatus
impl Eq for SCNetworkConnectionStatus
impl StructuralPartialEq for SCNetworkConnectionStatus
Auto Trait Implementations§
impl Freeze for SCNetworkConnectionStatus
impl RefUnwindSafe for SCNetworkConnectionStatus
impl Send for SCNetworkConnectionStatus
impl Sync for SCNetworkConnectionStatus
impl Unpin for SCNetworkConnectionStatus
impl UnwindSafe for SCNetworkConnectionStatus
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.