Struct dbus::arg::messageitem::PropHandler
source · [−]pub struct PropHandler<'a> { /* private fields */ }
Expand description
Wrapper around Props that keeps a map of fetched properties.
Implementations
sourceimpl<'a> PropHandler<'a>
impl<'a> PropHandler<'a>
sourcepub fn new(p: Props<'_>) -> PropHandler<'_>
pub fn new(p: Props<'_>) -> PropHandler<'_>
Create a new PropHandler from a Props.
sourcepub fn get_all(&mut self) -> Result<(), Error>
pub fn get_all(&mut self) -> Result<(), Error>
Get a map of all the properties’ names and their values.
sourcepub fn map_mut(&mut self) -> &mut BTreeMap<String, MessageItem>
pub fn map_mut(&mut self) -> &mut BTreeMap<String, MessageItem>
Get a mutable reference to the PropHandler’s fetched properties.
sourcepub fn map(&self) -> &BTreeMap<String, MessageItem>
pub fn map(&self) -> &BTreeMap<String, MessageItem>
Get a reference to the PropHandler’s fetched properties.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for PropHandler<'a>
impl<'a> !Send for PropHandler<'a>
impl<'a> !Sync for PropHandler<'a>
impl<'a> Unpin for PropHandler<'a>
impl<'a> !UnwindSafe for PropHandler<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more