pub struct Object {
pub interfaces: HashMap<String, HashMap<String, Value>>,
}Expand description
One object in BlueZ’s tree: its interfaces and their properties.
Fields§
§interfaces: HashMap<String, HashMap<String, Value>>Implementations§
Source§impl Object
impl Object
pub fn has(&self, interface: &str) -> bool
pub fn property(&self, interface: &str, name: &str) -> Option<&Value>
pub fn string(&self, interface: &str, name: &str) -> Option<String>
pub fn bool(&self, interface: &str, name: &str) -> Option<bool>
pub fn int(&self, interface: &str, name: &str) -> Option<i64>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Object
impl Freeze for Object
impl Move for Object
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnsafeUnpin for Object
impl UnwindSafe for Object
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more