Trait dbus_client::DbusObject

source ·
pub trait DbusObject<'a>: Sized {
    // Required methods
    fn new(
        conn: impl Into<MaybeOwned<'a, Connection>>,
        destination: impl Into<BusName<'a>>,
        path: impl Into<Path<'a>>,
        timeout: Duration,
    ) -> Self;
    fn connection(this: &Self) -> &Connection;
    fn destination(this: &Self) -> &BusName<'a>;
    fn path(this: &Self) -> &Path<'a>;
    fn timeout(this: &Self) -> Duration;

    // Provided methods
    fn connect(
        conn: impl Into<MaybeOwned<'a, Connection>>,
        timeout: Duration,
    ) -> Self
       where Self: CommonDestination + CommonPath { ... }
    fn with_destination(
        conn: impl Into<MaybeOwned<'a, Connection>>,
        destination: impl Into<BusName<'a>>,
        timeout: Duration,
    ) -> Self
       where Self: CommonPath { ... }
    fn with_path(
        conn: impl Into<MaybeOwned<'a, Connection>>,
        path: impl Into<Path<'a>>,
        timeout: Duration,
    ) -> Self
       where Self: CommonDestination { ... }
    fn session(timeout: Duration) -> Result<Self>
       where Self: CommonDestination + CommonPath + CommonlySession,
             'a: 'static { ... }
    fn system(timeout: Duration) -> Result<Self>
       where Self: CommonDestination + CommonPath + CommonlySystem,
             'a: 'static { ... }
    fn sub_object<T: DbusObject<'a>>(
        this: &'a Self,
        path: impl Into<Path<'a>>,
    ) -> T { ... }
    fn method_call<'b, R: ReadAll>(
        &'a self,
        interface: impl Into<Interface<'b>>,
        member: impl Into<Member<'b>>,
        args: impl AppendAll,
    ) -> Result<R> { ... }
}

Required Methods§

source

fn new( conn: impl Into<MaybeOwned<'a, Connection>>, destination: impl Into<BusName<'a>>, path: impl Into<Path<'a>>, timeout: Duration, ) -> Self

source

fn connection(this: &Self) -> &Connection

source

fn destination(this: &Self) -> &BusName<'a>

source

fn path(this: &Self) -> &Path<'a>

source

fn timeout(this: &Self) -> Duration

Provided Methods§

source

fn connect( conn: impl Into<MaybeOwned<'a, Connection>>, timeout: Duration, ) -> Self

source

fn with_destination( conn: impl Into<MaybeOwned<'a, Connection>>, destination: impl Into<BusName<'a>>, timeout: Duration, ) -> Self
where Self: CommonPath,

source

fn with_path( conn: impl Into<MaybeOwned<'a, Connection>>, path: impl Into<Path<'a>>, timeout: Duration, ) -> Self
where Self: CommonDestination,

source

fn session(timeout: Duration) -> Result<Self>
where Self: CommonDestination + CommonPath + CommonlySession, 'a: 'static,

source

fn system(timeout: Duration) -> Result<Self>
where Self: CommonDestination + CommonPath + CommonlySystem, 'a: 'static,

source

fn sub_object<T: DbusObject<'a>>(this: &'a Self, path: impl Into<Path<'a>>) -> T

source

fn method_call<'b, R: ReadAll>( &'a self, interface: impl Into<Interface<'b>>, member: impl Into<Member<'b>>, args: impl AppendAll, ) -> Result<R>

Object Safety§

This trait is not object safe.

Implementors§