#[repr(C)]pub struct SCNetworkConnectionContext {
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>>,
}
SCNetworkConnection
only.Expand description
Structure containing user-specified data and callbacks for a SCNetworkConnection. Field: version The version number of the structure type being passed in as a parameter to the SCNetworkConnectionCreateWithServiceID 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 SCNetworkConnectionContext
impl Clone for SCNetworkConnectionContext
Source§fn clone(&self) -> SCNetworkConnectionContext
fn clone(&self) -> SCNetworkConnectionContext
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SCNetworkConnectionContext
impl Debug for SCNetworkConnectionContext
Source§impl Encode for SCNetworkConnectionContext
Available on crate feature objc2
only.
impl Encode for SCNetworkConnectionContext
objc2
only.Source§impl RefEncode for SCNetworkConnectionContext
Available on crate feature objc2
only.
impl RefEncode for SCNetworkConnectionContext
objc2
only.