Trait ObjectRefExt

Source
pub trait ObjectRefExt {
    // Required methods
    fn as_accessible_proxy(
        &self,
        conn: &Connection,
    ) -> impl Future<Output = Result<AccessibleProxy<'_>, Error>> + Send;
    fn into_accessible_proxy(
        self,
        conn: &Connection,
    ) -> impl Future<Output = Result<AccessibleProxy<'_>, Error>> + Send;
}

Required Methods§

Source

fn as_accessible_proxy( &self, conn: &Connection, ) -> impl Future<Output = Result<AccessibleProxy<'_>, Error>> + Send

Returns an AccessibleProxy, the handle to the object’s Accessible interface.

§Errors

UniqueName or ObjectPath are assumed to be valid because they are obtained from a valid ObjectRef. If the builder is lacking the necessary parameters to build a proxy. See zbus::proxy::Builder::build. If this method fails, you may want to check the AccessibleProxy default values for missing / invalid parameters.

Source

fn into_accessible_proxy( self, conn: &Connection, ) -> impl Future<Output = Result<AccessibleProxy<'_>, Error>> + Send

Returns an AccessibleProxy, the handle to the object’s Accessible interface.

§Errors

UniqueName or ObjectPath are assumed to be valid because they are obtained from a valid ObjectRef. If the builder is lacking the necessary parameters to build a proxy. See zbus::proxy::Builder::build. If this method fails, you may want to check the AccessibleProxy default values for missing / invalid parameters.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ObjectRefExt for ObjectRef

Implementors§