Struct wayrs_core::ObjectId
source · pub struct ObjectId(pub NonZeroU32);
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: NonZeroU32
Implementations§
source§impl ObjectId
impl ObjectId
pub const DISPLAY: Self = _
pub const MAX_CLIENT: Self = _
pub const MIN_SERVER: Self = _
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 Ord for ObjectId
impl Ord 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 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 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