pub struct PropertyList { /* private fields */ }Implementations§
Source§impl PropertyList
impl PropertyList
pub fn from_string(value: &str) -> Result<Self>
pub fn from_bool(value: bool) -> Self
pub fn from_json(value: &str) -> Result<Self>
Sourcepub fn description(&self) -> Result<String>
pub fn description(&self) -> Result<String>
Examples found in repository?
examples/01_dynamic_store_overview.rs (line 12)
3fn main() -> Result<(), Box<dyn std::error::Error>> {
4 let store = DynamicStore::new_with_session_keys("systemconfiguration-rs.dynamic-store-example")?;
5 println!("computer_name={:?}", store.computer_name());
6 println!("local_host_name={:?}", store.local_host_name());
7 println!("location={:?}", store.location());
8
9 let global_ipv4 = DynamicStore::network_global_entity_key("State", "IPv4")?;
10 println!(
11 "global_ipv4={:?}",
12 store.copy_value(&global_ipv4)?.map(|value| value.description()).transpose()?
13 );
14 println!("proxies_present={}", store.proxies().is_some());
15 Ok(())
16}Trait Implementations§
Source§impl Clone for PropertyList
impl Clone for PropertyList
Source§fn clone(&self) -> PropertyList
fn clone(&self) -> PropertyList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PropertyList
impl RefUnwindSafe for PropertyList
impl !Send for PropertyList
impl !Sync for PropertyList
impl Unpin for PropertyList
impl UnsafeUnpin for PropertyList
impl UnwindSafe for PropertyList
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