pub type SCNetworkConnectionCallBack = Option<unsafe extern "C-unwind" fn(NonNull<SCNetworkConnection>, SCNetworkConnectionStatus, *mut c_void)>;Available on crate feature
SCNetworkConnection only.Expand description
Type of the callback function used when a status event is delivered.
Parameter status: The connection status.
Parameter connection: The connection reference.
Parameter info: Application-specific information.
See also Apple’s documentation
Aliased Type§
pub enum SCNetworkConnectionCallBack {
None,
Some(unsafe extern "C-unwind" fn(NonNull<SCNetworkConnection>, SCNetworkConnectionStatus, *mut c_void)),
}Variants§
None
No value.
Some(unsafe extern "C-unwind" fn(NonNull<SCNetworkConnection>, SCNetworkConnectionStatus, *mut c_void))
Some value of type T.