Struct dbus::PropHandler [−][src]
pub struct PropHandler<'a> { /* fields omitted */ }
Wrapper around Props that keeps a map of fetched properties.
Methods
impl<'a> PropHandler<'a>
[src]
impl<'a> PropHandler<'a>
pub fn new(p: Props) -> PropHandler
[src]
pub fn new(p: Props) -> PropHandler
Create a new PropHandler from a Props.
pub fn get_all(&mut self) -> Result<(), Error>
[src]
pub fn get_all(&mut self) -> Result<(), Error>
Get a map of all the properties' names and their values.
pub fn map_mut(&mut self) -> &mut BTreeMap<String, MessageItem>
[src]
pub fn map_mut(&mut self) -> &mut BTreeMap<String, MessageItem>
Get a mutable reference to the PropHandler's fetched properties.
pub fn map(&self) -> &BTreeMap<String, MessageItem>
[src]
pub fn map(&self) -> &BTreeMap<String, MessageItem>
Get a reference to the PropHandler's fetched properties.
pub fn get(&mut self, propname: &str) -> Result<&MessageItem, Error>
[src]
pub fn get(&mut self, propname: &str) -> Result<&MessageItem, Error>
Get a single property's value.
pub fn set(&mut self, propname: &str, value: MessageItem) -> Result<(), Error>
[src]
pub fn set(&mut self, propname: &str, value: MessageItem) -> Result<(), Error>
Set a single property's value.
Auto Trait Implementations
impl<'a> !Send for PropHandler<'a>
impl<'a> !Send for PropHandler<'a>
impl<'a> !Sync for PropHandler<'a>
impl<'a> !Sync for PropHandler<'a>