Type Alias SCNetworkConnectionCallBack

Source
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§

enum SCNetworkConnectionCallBack {
    None,
    Some(unsafe extern "C-unwind" fn(_: NonNull<SCNetworkConnection>, _: SCNetworkConnectionStatus, _: *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C-unwind" fn(_: NonNull<SCNetworkConnection>, _: SCNetworkConnectionStatus, _: *mut c_void))

Some value of type T.