ObjectRefExt

Trait ObjectRefExt 

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

Required Methods§

Source

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

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

§Errors

If the ObjectRef is null, this method returns an error. Users are advised to check if the ObjectRef is null before calling this method.

Source

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

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

§Errors

If the ObjectRef is null, this method returns an error. Users are advised to check if the ObjectRef is null before calling this method.

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 ObjectRefOwned

Implementors§