[][src]Struct system_configuration::preferences::SCPreferences

pub struct SCPreferences(_);

The handle to an open preferences session for accessing system configuration preferences.

Implementations

impl SCPreferences[src]

pub fn default(calling_process_name: &CFString) -> Self[src]

Initiates access to the default system preferences using the default allocator.

pub fn group(calling_process_name: &CFString, prefs_id: &CFString) -> Self[src]

Initiates access to the given (prefs_id) group of configuration preferences using the default allocator. To access the default system preferences, use the default constructor.

pub fn new(
    allocator: Option<&CFAllocator>,
    calling_process_name: &CFString,
    prefs_id: Option<&CFString>
) -> Self
[src]

Initiates access to the per-system set of configuration preferences with a given allocator and preference group to access. See the underlying SCPreferencesCreate function documentation for details. Use the helper constructors default and group to easier create an instance using the default allocator.

Trait Implementations

impl Clone for SCPreferences[src]

impl ConcreteCFType for SCPreferences[src]

impl Drop for SCPreferences[src]

impl Eq for SCPreferences[src]

impl PartialEq<SCPreferences> for SCPreferences[src]

impl TCFType for SCPreferences[src]

type Ref = SCPreferencesRef

The reference type wrapped inside this type.

impl<'a> ToVoid<SCPreferences> for &'a SCPreferences[src]

impl ToVoid<SCPreferences> for SCPreferences[src]

impl ToVoid<SCPreferences> for SCPreferencesRef[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromMutVoid for T where
    T: TCFType
[src]

impl<T> FromVoid for T where
    T: TCFType
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.