BorrowedProxy

Trait BorrowedProxy 

Source
pub unsafe trait BorrowedProxy: UntypedBorrowedProxyWrapper {
    type Owned: OwnedProxy<Borrowed = Self>;
}
Expand description

A borrowed proxy.

This type is usually implemented by bindings that are automatically generated with the wl-client-builder crate.

§Safety

  • It must be safe to transmute this type from a UntypedBorrowedProxy that has an interface that is compatible with Owned::WL_INTERFACE.
  • The interface of the contained proxy must be compatible with Owned::WL_INTERFACE.

Required Associated Types§

Source

type Owned: OwnedProxy<Borrowed = Self>

The owned version of this proxy.

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.

Implementors§