Struct dbus::PropHandler [] [src]

pub struct PropHandler<'a> {
    // some fields omitted
}

Wrapper around Props that keeps a map of fetched properties.

Methods

impl<'a> PropHandler<'a>
[src]

fn new(p: Props) -> PropHandler

Create a new PropHandler from a Props.

fn get_all(&mut self) -> Result<(), Error>

Get a map of all the properties' names and their values.

fn map_mut(&mut self) -> &mut BTreeMap<String, MessageItem>

Get a mutable reference to the PropHandler's fetched properties.

fn map(&self) -> &BTreeMap<String, MessageItem>

Get a reference to the PropHandler's fetched properties.

fn get(&mut self, propname: &str) -> Result<&MessageItem, Error>

Get a single property's value.

fn set(&mut self, propname: &str, value: MessageItem) -> Result<(), Error>

Set a single property's value.