Trait pipewire::proxy::ProxyT

source ·
pub trait ProxyT {
    // Required methods
    fn type_() -> ObjectType
       where Self: Sized;
    fn upcast(self) -> Proxy;
    fn upcast_ref(&self) -> &Proxy;
    unsafe fn from_proxy_unchecked(proxy: Proxy) -> Self
       where Self: Sized;
}

Required Methods§

source

fn type_() -> ObjectType
where Self: Sized,

source

fn upcast(self) -> Proxy

source

fn upcast_ref(&self) -> &Proxy

source

unsafe fn from_proxy_unchecked(proxy: Proxy) -> Self
where Self: Sized,

Downcast the provided proxy to Self without checking that the type matches.

This function should not be used by applications. If you really do need a way to downcast a proxy to it’s type, please open an issue.

§Safety

It must be manually ensured that the provided proxy is actually a proxy representing the created type.
Otherwise, undefined behaviour may occur.

Implementors§