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