pub struct CFPreferences;Expand description
Core Foundation preferences helpers.
Implementations§
Source§impl CFPreferences
impl CFPreferences
Sourcepub fn set_app_value(
key: &CFString,
value: Option<&dyn AsCFType>,
app_id: &CFString,
)
pub fn set_app_value( key: &CFString, value: Option<&dyn AsCFType>, app_id: &CFString, )
Set or clear an application-scoped preference value.
Sourcepub fn app_value(key: &CFString, app_id: &CFString) -> Option<CFType>
pub fn app_value(key: &CFString, app_id: &CFString) -> Option<CFType>
Copy an application-scoped preference value.
Sourcepub fn synchronize(app_id: &CFString) -> bool
pub fn synchronize(app_id: &CFString) -> bool
Flush pending preference changes.
Auto Trait Implementations§
impl Freeze for CFPreferences
impl RefUnwindSafe for CFPreferences
impl Send for CFPreferences
impl Sync for CFPreferences
impl Unpin for CFPreferences
impl UnsafeUnpin for CFPreferences
impl UnwindSafe for CFPreferences
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more