#[repr(C)]pub struct SCNetworkReachabilityContext {
pub version: CFIndex,
pub info: *mut c_void,
pub retain: Option<unsafe extern "C-unwind" fn(NonNull<c_void>) -> NonNull<c_void>>,
pub release: Option<unsafe extern "C-unwind" fn(NonNull<c_void>)>,
pub copyDescription: Option<unsafe extern "C-unwind" fn(NonNull<c_void>) -> NonNull<CFString>>,
}SCNetworkReachability only.Expand description
Structure containing user-specified data and callbacks for SCNetworkReachability. Field: version The version number of the structure type being passed in as a parameter to the SCDynamicStore creation function. This structure is version 0. Field: info A C pointer to a user-specified block of data. Field: retain The callback used to add a retain for the info field. If this parameter is not a pointer to a function of the correct prototype, the behavior is undefined. The value may be NULL. Field: release The calllback used to remove a retain previously added for the info field. If this parameter is not a pointer to a function of the correct prototype, the behavior is undefined. The value may be NULL. Field: copyDescription The callback used to provide a description of the info field.
See also Apple’s documentation
Fields§
§version: CFIndex§info: *mut c_void§retain: Option<unsafe extern "C-unwind" fn(NonNull<c_void>) -> NonNull<c_void>>§release: Option<unsafe extern "C-unwind" fn(NonNull<c_void>)>§copyDescription: Option<unsafe extern "C-unwind" fn(NonNull<c_void>) -> NonNull<CFString>>Trait Implementations§
Source§impl Clone for SCNetworkReachabilityContext
impl Clone for SCNetworkReachabilityContext
Source§fn clone(&self) -> SCNetworkReachabilityContext
fn clone(&self) -> SCNetworkReachabilityContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SCNetworkReachabilityContext
impl Debug for SCNetworkReachabilityContext
Source§impl Encode for SCNetworkReachabilityContext
Available on crate feature objc2 only.
impl Encode for SCNetworkReachabilityContext
objc2 only.Source§impl PartialEq for SCNetworkReachabilityContext
impl PartialEq for SCNetworkReachabilityContext
Source§fn eq(&self, other: &SCNetworkReachabilityContext) -> bool
fn eq(&self, other: &SCNetworkReachabilityContext) -> bool
self and other values to be equal, and is used by ==.Source§impl RefEncode for SCNetworkReachabilityContext
Available on crate feature objc2 only.
impl RefEncode for SCNetworkReachabilityContext
objc2 only.