Type Alias SCNetworkReachabilityCallBack

Source
pub type SCNetworkReachabilityCallBack = Option<unsafe extern "C-unwind" fn(NonNull<SCNetworkReachability>, SCNetworkReachabilityFlags, *mut c_void)>;
Available on crate feature SCNetworkReachability only.
Expand description

Type of the callback function used when the reachability of a network address or name changes.

Parameter target: The SCNetworkReachability reference being monitored for changes.

Parameter flags: The new SCNetworkReachabilityFlags representing the reachability status of the network address/name.

Parameter info: A C pointer to a user-specified block of data.

See also Apple’s documentation

Aliased Type§

pub enum SCNetworkReachabilityCallBack {
    None,
    Some(unsafe extern "C-unwind" fn(NonNull<SCNetworkReachability>, SCNetworkReachabilityFlags, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C-unwind" fn(NonNull<SCNetworkReachability>, SCNetworkReachabilityFlags, *mut c_void))

Some value of type T.