wayland_bridge::object

Trait NewObjectExt

Source
pub trait NewObjectExt<I: Interface> {
    // Required method
    fn implement<R: RequestReceiver<I>>(
        self,
        client: &mut Client,
        receiver: R,
    ) -> Result<ObjectRef<R>, Error>;
}

Required Methods§

Source

fn implement<R: RequestReceiver<I>>( self, client: &mut Client, receiver: R, ) -> Result<ObjectRef<R>, Error>

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<I: Interface> NewObjectExt<I> for NewObject<I>

Source§

fn implement<R: RequestReceiver<I>>( self, client: &mut Client, receiver: R, ) -> Result<ObjectRef<R>, Error>

Implementors§