Struct wayland_client::Weak
source · [−]pub struct Weak<I> { /* private fields */ }
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()
.
Implementations
Trait Implementations
sourceimpl PartialEq<Weak<WlCallback>> for WlCallback
impl PartialEq<Weak<WlCallback>> for WlCallback
sourcefn eq(&self, other: &Weak<WlCallback>) -> bool
fn eq(&self, other: &Weak<WlCallback>) -> bool
sourceimpl PartialEq<Weak<WlCompositor>> for WlCompositor
impl PartialEq<Weak<WlCompositor>> for WlCompositor
sourcefn eq(&self, other: &Weak<WlCompositor>) -> bool
fn eq(&self, other: &Weak<WlCompositor>) -> bool
sourceimpl PartialEq<Weak<WlDataDevice>> for WlDataDevice
impl PartialEq<Weak<WlDataDevice>> for WlDataDevice
sourcefn eq(&self, other: &Weak<WlDataDevice>) -> bool
fn eq(&self, other: &Weak<WlDataDevice>) -> bool
sourceimpl PartialEq<Weak<WlDataDeviceManager>> for WlDataDeviceManager
impl PartialEq<Weak<WlDataDeviceManager>> for WlDataDeviceManager
sourcefn eq(&self, other: &Weak<WlDataDeviceManager>) -> bool
fn eq(&self, other: &Weak<WlDataDeviceManager>) -> bool
sourceimpl PartialEq<Weak<WlDataOffer>> for WlDataOffer
impl PartialEq<Weak<WlDataOffer>> for WlDataOffer
sourcefn eq(&self, other: &Weak<WlDataOffer>) -> bool
fn eq(&self, other: &Weak<WlDataOffer>) -> bool
sourceimpl PartialEq<Weak<WlDataSource>> for WlDataSource
impl PartialEq<Weak<WlDataSource>> for WlDataSource
sourcefn eq(&self, other: &Weak<WlDataSource>) -> bool
fn eq(&self, other: &Weak<WlDataSource>) -> bool
sourceimpl PartialEq<Weak<WlDisplay>> for WlDisplay
impl PartialEq<Weak<WlDisplay>> for WlDisplay
sourceimpl PartialEq<Weak<WlKeyboard>> for WlKeyboard
impl PartialEq<Weak<WlKeyboard>> for WlKeyboard
sourcefn eq(&self, other: &Weak<WlKeyboard>) -> bool
fn eq(&self, other: &Weak<WlKeyboard>) -> bool
sourceimpl PartialEq<Weak<WlPointer>> for WlPointer
impl PartialEq<Weak<WlPointer>> for WlPointer
sourceimpl PartialEq<Weak<WlRegistry>> for WlRegistry
impl PartialEq<Weak<WlRegistry>> for WlRegistry
sourcefn eq(&self, other: &Weak<WlRegistry>) -> bool
fn eq(&self, other: &Weak<WlRegistry>) -> bool
sourceimpl PartialEq<Weak<WlShellSurface>> for WlShellSurface
impl PartialEq<Weak<WlShellSurface>> for WlShellSurface
sourcefn eq(&self, other: &Weak<WlShellSurface>) -> bool
fn eq(&self, other: &Weak<WlShellSurface>) -> bool
sourceimpl PartialEq<Weak<WlShmPool>> for WlShmPool
impl PartialEq<Weak<WlShmPool>> for WlShmPool
sourceimpl PartialEq<Weak<WlSubcompositor>> for WlSubcompositor
impl PartialEq<Weak<WlSubcompositor>> for WlSubcompositor
sourcefn eq(&self, other: &Weak<WlSubcompositor>) -> bool
fn eq(&self, other: &Weak<WlSubcompositor>) -> bool
sourceimpl PartialEq<Weak<WlSubsurface>> for WlSubsurface
impl PartialEq<Weak<WlSubsurface>> for WlSubsurface
sourcefn eq(&self, other: &Weak<WlSubsurface>) -> bool
fn eq(&self, other: &Weak<WlSubsurface>) -> bool
sourceimpl PartialEq<Weak<WlSurface>> for WlSurface
impl PartialEq<Weak<WlSurface>> for WlSurface
impl<I> Eq for Weak<I>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
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
. Read morefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read morefn 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. Read morefn 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. Read more