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§
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,
) -> Selfwhere
Self: CommonDestination + CommonPath,
fn with_destination(
conn: impl Into<MaybeOwned<'a, Connection>>,
destination: impl Into<BusName<'a>>,
timeout: Duration,
) -> Selfwhere
Self: CommonPath,
fn with_path(
conn: impl Into<MaybeOwned<'a, Connection>>,
path: impl Into<Path<'a>>,
timeout: Duration,
) -> Selfwhere
Self: CommonDestination,
fn session(timeout: Duration) -> Result<Self>
fn system(timeout: Duration) -> Result<Self>
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>
Object Safety§
This trait is not object safe.