Trait atspi_proxies::accessible::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::ProxyBuilder::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::ProxyBuilder::build. If this method fails, you may want to check the AccessibleProxy default values for missing / invalid parameters.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ObjectRefExt for ObjectRef

Implementors§