pub struct NewObject<I: Interface + 'static>(/* private fields */);
Expand description
A NewObject
is a type-safe wrapper around a ‘new_id’ argument that has
a static wayland interface. This wrapper will enforce that the object is
only implemented by types that can receive wayland messages for the
expected interface.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<I> Freeze for NewObject<I>
impl<I> RefUnwindSafe for NewObject<I>where
I: RefUnwindSafe,
impl<I> Send for NewObject<I>where
I: Send,
impl<I> Sync for NewObject<I>where
I: Sync,
impl<I> Unpin for NewObject<I>where
I: Unpin,
impl<I> UnwindSafe for NewObject<I>where
I: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more