[][src]Struct dbus::PropHandler

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

Wrapper around Props that keeps a map of fetched properties.

Methods

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

pub fn new(p: Props) -> PropHandler[src]

Create a new PropHandler from a Props.

pub fn get_all(&mut self) -> Result<(), Error>[src]

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

pub fn map_mut(&mut self) -> &mut BTreeMap<String, MessageItem>[src]

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

pub fn map(&self) -> &BTreeMap<String, MessageItem>[src]

Get a reference to the PropHandler's fetched properties.

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

Get a single property's value.

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

Set a single property's value.

Auto Trait Implementations

impl<'a> Unpin for PropHandler<'a>

impl<'a> !Sync for PropHandler<'a>

impl<'a> !Send for PropHandler<'a>

impl<'a> !RefUnwindSafe for PropHandler<'a>

impl<'a> !UnwindSafe for PropHandler<'a>

Blanket Implementations

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

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

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.

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

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

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