[−][src]Struct system_configuration::dynamic_store::SCDynamicStore
Access to the key-value pairs in the dynamic store of a running system.
Use the SCDynamicStoreBuilder
to create instances of this.
Implementations
impl SCDynamicStore
[src]
pub fn get_keys<S: Into<CFString>>(
&self,
pattern: S
) -> Option<CFArray<CFString>>
[src]
&self,
pattern: S
) -> Option<CFArray<CFString>>
Returns the keys that represent the current dynamic store entries that match the specified
pattern. Or None
if an error occured.
pattern
- A regular expression pattern used to match the dynamic store keys.
pub fn get_proxies(&self) -> Option<CFDictionary<CFString, CFType>>
[src]
Returns the key-value pairs that represent the current internet proxy settings. Or None
if
no proxy settings have been defined or if an error occured.
pub fn get<S: Into<CFString>>(&self, key: S) -> Option<CFPropertyList>
[src]
If the given key exists in the store, the associated value is returned.
Use CFPropertyList::downcast_into
to cast the result into the correct type.
pub fn set<S: Into<CFString>, V: CFPropertyListSubClass>(
&self,
key: S,
value: V
) -> bool
[src]
&self,
key: S,
value: V
) -> bool
Sets the value of the given key. Overwrites existing values.
Returns true
on success, false on failure.
pub fn set_raw<S: Into<CFString>>(&self, key: S, value: &CFPropertyList) -> bool
[src]
Sets the value of the given key. Overwrites existing values.
Returns true
on success, false on failure.
pub fn remove<S: Into<CFString>>(&self, key: S) -> bool
[src]
Removes the value of the specified key from the dynamic store.
pub fn set_notification_keys<T1, T2>(
&self,
keys: &CFArray<T1>,
patterns: &CFArray<T2>
) -> bool
[src]
&self,
keys: &CFArray<T1>,
patterns: &CFArray<T2>
) -> bool
Specifies a set of keys and key patterns that should be monitored for changes.
pub fn create_run_loop_source(&self) -> CFRunLoopSource
[src]
Creates a run loop source object that can be added to the application's run loop.
Trait Implementations
impl Clone for SCDynamicStore
[src]
fn clone(&self) -> SCDynamicStore
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl ConcreteCFType for SCDynamicStore
[src]
impl Drop for SCDynamicStore
[src]
impl Eq for SCDynamicStore
[src]
impl PartialEq<SCDynamicStore> for SCDynamicStore
[src]
fn eq(&self, other: &SCDynamicStore) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl TCFType for SCDynamicStore
[src]
type Ref = SCDynamicStoreRef
The reference type wrapped inside this type.
fn as_concrete_TypeRef(&self) -> SCDynamicStoreRef
[src]
unsafe fn wrap_under_get_rule(reference: SCDynamicStoreRef) -> Self
[src]
fn as_CFTypeRef(&self) -> CFTypeRef
[src]
unsafe fn wrap_under_create_rule(reference: SCDynamicStoreRef) -> Self
[src]
fn type_id() -> CFTypeID
[src]
fn as_CFType(&self) -> CFType
[src]
fn into_CFType(self) -> CFType
[src]
fn retain_count(&self) -> isize
[src]
fn type_of(&self) -> usize
[src]
fn show(&self)
[src]
fn instance_of<OtherCFType>(&self) -> bool where
OtherCFType: TCFType,
[src]
OtherCFType: TCFType,
impl<'a> ToVoid<SCDynamicStore> for &'a SCDynamicStore
[src]
impl ToVoid<SCDynamicStore> for SCDynamicStore
[src]
impl ToVoid<SCDynamicStore> for SCDynamicStoreRef
[src]
Auto Trait Implementations
impl RefUnwindSafe for SCDynamicStore
impl !Send for SCDynamicStore
impl !Sync for SCDynamicStore
impl Unpin for SCDynamicStore
impl UnwindSafe for SCDynamicStore
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> FromMutVoid for T where
T: TCFType,
[src]
T: TCFType,
unsafe fn from_mut_void<'a>(x: *mut c_void) -> ItemMutRef<'a, T>
[src]
impl<T> FromVoid for T where
T: TCFType,
[src]
T: TCFType,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,