[−][src]Struct zbus::fdo::PropertiesProxy
Proxy for the org.freedesktop.DBus.Properties
interface.
Implementations
impl<'c> PropertiesProxy<'c>
[src]
pub fn new(conn: &'c Connection) -> Result<Self>
[src]
Creates a new proxy with the default service & path.
pub fn new_for(
conn: &'c Connection,
destination: &'c str,
path: &'c str
) -> Result<Self>
[src]
conn: &'c Connection,
destination: &'c str,
path: &'c str
) -> Result<Self>
Creates a new proxy for the given destination
and path
.
pub fn get(
&self,
interface_name: &str,
property_name: &str
) -> Result<OwnedValue>
[src]
&self,
interface_name: &str,
property_name: &str
) -> Result<OwnedValue>
Get a property value.
pub fn set(
&self,
interface_name: &str,
property_name: &str,
value: &Value<'_>
) -> Result<()>
[src]
&self,
interface_name: &str,
property_name: &str,
value: &Value<'_>
) -> Result<()>
Set a property value.
pub fn get_all(
&self,
interface_name: &str
) -> Result<HashMap<String, OwnedValue>>
[src]
&self,
interface_name: &str
) -> Result<HashMap<String, OwnedValue>>
Get all properties.
pub fn introspect(&self) -> Result<String>
[src]
Auto Trait Implementations
impl<'c> !RefUnwindSafe for PropertiesProxy<'c>
impl<'c> !Send for PropertiesProxy<'c>
impl<'c> !Sync for PropertiesProxy<'c>
impl<'c> Unpin for PropertiesProxy<'c>
impl<'c> !UnwindSafe for PropertiesProxy<'c>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> 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>,