Struct wayrs_client::object::ObjectId
source · pub struct ObjectId(/* private fields */);Expand description
A Wayland object ID.
Uniquely identifies an object at each point of time. Note that an ID may have a limited lifetime. Also an ID which once pointed to a certain object, may point to a different object in the future, due to ID reuse.
Implementations§
source§impl ObjectId
impl ObjectId
sourcepub fn created_by_server(self) -> bool
pub fn created_by_server(self) -> bool
Whether the object with this ID was created by the server
sourcepub fn created_by_client(self) -> bool
pub fn created_by_client(self) -> bool
Whether the object with this ID was created by the client
Trait Implementations§
source§impl Borrow<ObjectId> for WlCallback
impl Borrow<ObjectId> for WlCallback
source§impl Borrow<ObjectId> for WlCompositor
impl Borrow<ObjectId> for WlCompositor
source§impl Borrow<ObjectId> for WlDataDevice
impl Borrow<ObjectId> for WlDataDevice
source§impl Borrow<ObjectId> for WlDataDeviceManager
impl Borrow<ObjectId> for WlDataDeviceManager
source§impl Borrow<ObjectId> for WlDataOffer
impl Borrow<ObjectId> for WlDataOffer
source§impl Borrow<ObjectId> for WlDataSource
impl Borrow<ObjectId> for WlDataSource
source§impl Borrow<ObjectId> for WlKeyboard
impl Borrow<ObjectId> for WlKeyboard
source§impl Borrow<ObjectId> for WlRegistry
impl Borrow<ObjectId> for WlRegistry
source§impl Borrow<ObjectId> for WlShellSurface
impl Borrow<ObjectId> for WlShellSurface
source§impl Borrow<ObjectId> for WlSubcompositor
impl Borrow<ObjectId> for WlSubcompositor
source§impl Borrow<ObjectId> for WlSubsurface
impl Borrow<ObjectId> for WlSubsurface
source§impl Ord for ObjectId
impl Ord for ObjectId
source§impl PartialEq<Object> for ObjectId
impl PartialEq<Object> for ObjectId
source§impl PartialEq<ObjectId> for Object
impl PartialEq<ObjectId> for Object
source§impl PartialEq<ObjectId> for WlBuffer
impl PartialEq<ObjectId> for WlBuffer
source§impl PartialEq<ObjectId> for WlCallback
impl PartialEq<ObjectId> for WlCallback
source§impl PartialEq<ObjectId> for WlCompositor
impl PartialEq<ObjectId> for WlCompositor
source§impl PartialEq<ObjectId> for WlDataDevice
impl PartialEq<ObjectId> for WlDataDevice
source§impl PartialEq<ObjectId> for WlDataDeviceManager
impl PartialEq<ObjectId> for WlDataDeviceManager
source§impl PartialEq<ObjectId> for WlDataOffer
impl PartialEq<ObjectId> for WlDataOffer
source§impl PartialEq<ObjectId> for WlDataSource
impl PartialEq<ObjectId> for WlDataSource
source§impl PartialEq<ObjectId> for WlKeyboard
impl PartialEq<ObjectId> for WlKeyboard
source§impl PartialEq<ObjectId> for WlOutput
impl PartialEq<ObjectId> for WlOutput
source§impl PartialEq<ObjectId> for WlPointer
impl PartialEq<ObjectId> for WlPointer
source§impl PartialEq<ObjectId> for WlRegion
impl PartialEq<ObjectId> for WlRegion
source§impl PartialEq<ObjectId> for WlRegistry
impl PartialEq<ObjectId> for WlRegistry
source§impl PartialEq<ObjectId> for WlSeat
impl PartialEq<ObjectId> for WlSeat
source§impl PartialEq<ObjectId> for WlShell
impl PartialEq<ObjectId> for WlShell
source§impl PartialEq<ObjectId> for WlShellSurface
impl PartialEq<ObjectId> for WlShellSurface
source§impl PartialEq<ObjectId> for WlShm
impl PartialEq<ObjectId> for WlShm
source§impl PartialEq<ObjectId> for WlShmPool
impl PartialEq<ObjectId> for WlShmPool
source§impl PartialEq<ObjectId> for WlSubcompositor
impl PartialEq<ObjectId> for WlSubcompositor
source§impl PartialEq<ObjectId> for WlSubsurface
impl PartialEq<ObjectId> for WlSubsurface
source§impl PartialEq<ObjectId> for WlSurface
impl PartialEq<ObjectId> for WlSurface
source§impl PartialEq<ObjectId> for WlTouch
impl PartialEq<ObjectId> for WlTouch
source§impl PartialEq<WlBuffer> for ObjectId
impl PartialEq<WlBuffer> for ObjectId
source§impl PartialEq<WlCallback> for ObjectId
impl PartialEq<WlCallback> for ObjectId
source§fn eq(&self, other: &WlCallback) -> bool
fn eq(&self, other: &WlCallback) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<WlCompositor> for ObjectId
impl PartialEq<WlCompositor> for ObjectId
source§fn eq(&self, other: &WlCompositor) -> bool
fn eq(&self, other: &WlCompositor) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<WlDataDevice> for ObjectId
impl PartialEq<WlDataDevice> for ObjectId
source§fn eq(&self, other: &WlDataDevice) -> bool
fn eq(&self, other: &WlDataDevice) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<WlDataDeviceManager> for ObjectId
impl PartialEq<WlDataDeviceManager> for ObjectId
source§fn eq(&self, other: &WlDataDeviceManager) -> bool
fn eq(&self, other: &WlDataDeviceManager) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<WlDataOffer> for ObjectId
impl PartialEq<WlDataOffer> for ObjectId
source§fn eq(&self, other: &WlDataOffer) -> bool
fn eq(&self, other: &WlDataOffer) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<WlDataSource> for ObjectId
impl PartialEq<WlDataSource> for ObjectId
source§fn eq(&self, other: &WlDataSource) -> bool
fn eq(&self, other: &WlDataSource) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<WlKeyboard> for ObjectId
impl PartialEq<WlKeyboard> for ObjectId
source§fn eq(&self, other: &WlKeyboard) -> bool
fn eq(&self, other: &WlKeyboard) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<WlOutput> for ObjectId
impl PartialEq<WlOutput> for ObjectId
source§impl PartialEq<WlPointer> for ObjectId
impl PartialEq<WlPointer> for ObjectId
source§impl PartialEq<WlRegion> for ObjectId
impl PartialEq<WlRegion> for ObjectId
source§impl PartialEq<WlRegistry> for ObjectId
impl PartialEq<WlRegistry> for ObjectId
source§fn eq(&self, other: &WlRegistry) -> bool
fn eq(&self, other: &WlRegistry) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<WlSeat> for ObjectId
impl PartialEq<WlSeat> for ObjectId
source§impl PartialEq<WlShell> for ObjectId
impl PartialEq<WlShell> for ObjectId
source§impl PartialEq<WlShellSurface> for ObjectId
impl PartialEq<WlShellSurface> for ObjectId
source§fn eq(&self, other: &WlShellSurface) -> bool
fn eq(&self, other: &WlShellSurface) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<WlShm> for ObjectId
impl PartialEq<WlShm> for ObjectId
source§impl PartialEq<WlShmPool> for ObjectId
impl PartialEq<WlShmPool> for ObjectId
source§impl PartialEq<WlSubcompositor> for ObjectId
impl PartialEq<WlSubcompositor> for ObjectId
source§fn eq(&self, other: &WlSubcompositor) -> bool
fn eq(&self, other: &WlSubcompositor) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<WlSubsurface> for ObjectId
impl PartialEq<WlSubsurface> for ObjectId
source§fn eq(&self, other: &WlSubsurface) -> bool
fn eq(&self, other: &WlSubsurface) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialEq<WlSurface> for ObjectId
impl PartialEq<WlSurface> for ObjectId
source§impl PartialEq<WlTouch> for ObjectId
impl PartialEq<WlTouch> for ObjectId
source§impl PartialEq for ObjectId
impl PartialEq for ObjectId
source§impl PartialOrd for ObjectId
impl PartialOrd for ObjectId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for ObjectId
impl Eq for ObjectId
impl StructuralEq for ObjectId
impl StructuralPartialEq for ObjectId
Auto Trait Implementations§
impl RefUnwindSafe for ObjectId
impl Send for ObjectId
impl Sync for ObjectId
impl Unpin for ObjectId
impl UnwindSafe for ObjectId
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