pub struct ObjectId(pub NonZero<u32>);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.
Tuple Fields§
§0: NonZero<u32>Implementations§
Source§impl ObjectId
impl ObjectId
pub const DISPLAY: ObjectId
pub const MAX_CLIENT: ObjectId
pub const MIN_SERVER: 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 WlRegistry
impl Borrow<ObjectId> for WlRegistry
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 WlDataOffer
impl Borrow<ObjectId> for WlDataOffer
Source§impl Borrow<ObjectId> for WlDataSource
impl Borrow<ObjectId> for WlDataSource
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 WlShellSurface
impl Borrow<ObjectId> for WlShellSurface
Source§impl Borrow<ObjectId> for WlKeyboard
impl Borrow<ObjectId> for WlKeyboard
Source§impl Borrow<ObjectId> for WlSubcompositor
impl Borrow<ObjectId> for WlSubcompositor
Source§impl Borrow<ObjectId> for WlSubsurface
impl Borrow<ObjectId> for WlSubsurface
impl Copy for ObjectId
impl Eq for ObjectId
Source§impl Ord for ObjectId
impl Ord for ObjectId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq<ObjectId> for WlRegistry
impl PartialEq<ObjectId> for WlRegistry
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 WlDataOffer
impl PartialEq<ObjectId> for WlDataOffer
Source§impl PartialEq<ObjectId> for WlDataSource
impl PartialEq<ObjectId> for WlDataSource
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 WlShellSurface
impl PartialEq<ObjectId> for WlShellSurface
Source§impl PartialEq<ObjectId> for WlKeyboard
impl PartialEq<ObjectId> for WlKeyboard
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<WlCallback> for ObjectId
impl PartialEq<WlCallback> for ObjectId
Source§impl PartialEq<WlCompositor> for ObjectId
impl PartialEq<WlCompositor> for ObjectId
Source§impl PartialEq<WlDataDevice> for ObjectId
impl PartialEq<WlDataDevice> for ObjectId
Source§impl PartialEq<WlDataDeviceManager> for ObjectId
impl PartialEq<WlDataDeviceManager> for ObjectId
Source§impl PartialEq<WlDataOffer> for ObjectId
impl PartialEq<WlDataOffer> for ObjectId
Source§impl PartialEq<WlDataSource> for ObjectId
impl PartialEq<WlDataSource> for ObjectId
Source§impl PartialEq<WlKeyboard> for ObjectId
impl PartialEq<WlKeyboard> for ObjectId
Source§impl PartialEq<WlRegistry> for ObjectId
impl PartialEq<WlRegistry> for ObjectId
Source§impl PartialEq<WlShellSurface> for ObjectId
impl PartialEq<WlShellSurface> for ObjectId
Source§impl PartialEq<WlSubcompositor> for ObjectId
impl PartialEq<WlSubcompositor> for ObjectId
Source§impl PartialEq<WlSubsurface> for ObjectId
impl PartialEq<WlSubsurface> for ObjectId
Source§impl PartialOrd for ObjectId
impl PartialOrd for ObjectId
impl StructuralPartialEq for ObjectId
Auto Trait Implementations§
impl Freeze for ObjectId
impl RefUnwindSafe for ObjectId
impl Send for ObjectId
impl Sync for ObjectId
impl Unpin for ObjectId
impl UnsafeUnpin 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