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