[go: up one dir, main page]

[][src]Struct zbus::fdo::StatsProxy

pub struct StatsProxy<'c>(_);

Proxy for the org.freedesktop.DBus.Stats interface.

Implementations

impl<'c> StatsProxy<'c>[src]

pub fn new(conn: &Connection) -> Result<Self>[src]

Creates a new proxy with the default service & path.

pub fn new_for(
    conn: &Connection,
    destination: &'c str,
    path: &'c str
) -> Result<Self>
[src]

Creates a new proxy for the given destination and path.

pub fn new_for_owned(
    conn: Connection,
    destination: String,
    path: String
) -> Result<Self>
[src]

Same as new_for but takes ownership of the passed arguments.

pub fn into_inner(self) -> Proxy<'c>[src]

Consumes self, returning the underlying zbus::Proxy.

pub fn inner(&self) -> &Proxy<'_>[src]

The reference to the underlying zbus::Proxy.

pub fn get_stats(&self) -> Result<Vec<HashMap<String, OwnedValue>>>[src]

GetStats (undocumented)

pub fn get_connection_stats(
    &self,
    n1: &str
) -> Result<Vec<HashMap<String, OwnedValue>>>
[src]

GetConnectionStats (undocumented)

pub fn get_all_match_rules(&self) -> Result<Vec<HashMap<String, Vec<String>>>>[src]

GetAllMatchRules (undocumented)

pub fn introspect(&self) -> Result<String>[src]

Methods from Deref<Target = Proxy<'c>>

pub fn introspect(&self) -> Result<String>[src]

Introspect the associated object, and return the XML description.

See the xml module for parsing the result.

pub fn get_property<T>(&self, property_name: &str) -> Result<T> where
    T: TryFrom<OwnedValue>, 
[src]

Get the property property_name.

Effectively, call the Get method of the org.freedesktop.DBus.Properties interface.

pub fn set_property<'t, T: 't>(
    &self,
    property_name: &str,
    value: T
) -> Result<()> where
    T: Into<Value<'t>>, 
[src]

Set the property property_name.

Effectively, call the Set method of the org.freedesktop.DBus.Properties interface.

pub fn call_method<B>(&self, method_name: &str, body: &B) -> Result<Message> where
    B: Serialize + Type
[src]

Call a method and return the reply.

Typically, you would want to use call method instead. Use this method if you need to deserialize the reply message manually (this way, you can avoid avoid the memory allocation/copying, by deserializing the reply to an unowned type).

pub fn call<B, R>(&self, method_name: &str, body: &B) -> Result<R> where
    B: Serialize + Type,
    R: DeserializeOwned + Type
[src]

Call a method and return the reply body.

Use call_method instead if you need to deserialize the reply manually/separately.

Trait Implementations

impl<'c> Deref for StatsProxy<'c>[src]

type Target = Proxy<'c>

The resulting type after dereferencing.

Auto Trait Implementations

impl<'c> !RefUnwindSafe for StatsProxy<'c>

impl<'c> !Send for StatsProxy<'c>

impl<'c> !Sync for StatsProxy<'c>

impl<'c> Unpin for StatsProxy<'c>

impl<'c> !UnwindSafe for StatsProxy<'c>

Blanket Implementations

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

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

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

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.