Struct wayland_client::Weak
source · pub struct Weak<I> {
pub(crate) backend: WeakBackend,
pub(crate) id: ObjectId,
pub(crate) _iface: PhantomData<I>,
}
Expand description
A weak handle to a Wayland object
This handle does not keep the underlying user data alive, and can be converted back to a full proxy
using Weak::upgrade()
.
Fields§
§backend: WeakBackend
§id: ObjectId
§_iface: PhantomData<I>
Implementations§
Trait Implementations§
source§impl PartialEq<Weak<WlBuffer>> for WlBuffer
impl PartialEq<Weak<WlBuffer>> for WlBuffer
source§impl PartialEq<Weak<WlCallback>> for WlCallback
impl PartialEq<Weak<WlCallback>> for WlCallback
source§impl PartialEq<Weak<WlCompositor>> for WlCompositor
impl PartialEq<Weak<WlCompositor>> for WlCompositor
source§impl PartialEq<Weak<WlDataDevice>> for WlDataDevice
impl PartialEq<Weak<WlDataDevice>> for WlDataDevice
source§impl PartialEq<Weak<WlDataDeviceManager>> for WlDataDeviceManager
impl PartialEq<Weak<WlDataDeviceManager>> for WlDataDeviceManager
source§impl PartialEq<Weak<WlDataOffer>> for WlDataOffer
impl PartialEq<Weak<WlDataOffer>> for WlDataOffer
source§impl PartialEq<Weak<WlDataSource>> for WlDataSource
impl PartialEq<Weak<WlDataSource>> for WlDataSource
source§impl PartialEq<Weak<WlDisplay>> for WlDisplay
impl PartialEq<Weak<WlDisplay>> for WlDisplay
source§impl PartialEq<Weak<WlKeyboard>> for WlKeyboard
impl PartialEq<Weak<WlKeyboard>> for WlKeyboard
source§impl PartialEq<Weak<WlOutput>> for WlOutput
impl PartialEq<Weak<WlOutput>> for WlOutput
source§impl PartialEq<Weak<WlPointer>> for WlPointer
impl PartialEq<Weak<WlPointer>> for WlPointer
source§impl PartialEq<Weak<WlRegion>> for WlRegion
impl PartialEq<Weak<WlRegion>> for WlRegion
source§impl PartialEq<Weak<WlRegistry>> for WlRegistry
impl PartialEq<Weak<WlRegistry>> for WlRegistry
source§impl PartialEq<Weak<WlSeat>> for WlSeat
impl PartialEq<Weak<WlSeat>> for WlSeat
source§impl PartialEq<Weak<WlShell>> for WlShell
impl PartialEq<Weak<WlShell>> for WlShell
source§impl PartialEq<Weak<WlShellSurface>> for WlShellSurface
impl PartialEq<Weak<WlShellSurface>> for WlShellSurface
source§impl PartialEq<Weak<WlShm>> for WlShm
impl PartialEq<Weak<WlShm>> for WlShm
source§impl PartialEq<Weak<WlShmPool>> for WlShmPool
impl PartialEq<Weak<WlShmPool>> for WlShmPool
source§impl PartialEq<Weak<WlSubcompositor>> for WlSubcompositor
impl PartialEq<Weak<WlSubcompositor>> for WlSubcompositor
source§impl PartialEq<Weak<WlSubsurface>> for WlSubsurface
impl PartialEq<Weak<WlSubsurface>> for WlSubsurface
source§impl PartialEq<Weak<WlSurface>> for WlSurface
impl PartialEq<Weak<WlSurface>> for WlSurface
source§impl PartialEq<Weak<WlTouch>> for WlTouch
impl PartialEq<Weak<WlTouch>> for WlTouch
source§impl<I> PartialEq for Weak<I>
impl<I> PartialEq for Weak<I>
impl<I> Eq for Weak<I>
Auto Trait Implementations§
impl<I> Freeze for Weak<I>
impl<I> RefUnwindSafe for Weak<I>where
I: RefUnwindSafe,
impl<I> Send for Weak<I>where
I: Send,
impl<I> Sync for Weak<I>where
I: Sync,
impl<I> Unpin for Weak<I>where
I: Unpin,
impl<I> UnwindSafe for Weak<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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.