[−][src]Struct dbus::PropHandler
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]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,