pub struct SurfaceId(/* private fields */);Expand description
A process-global, monotonically increasing identifier for one surface
instance — a Tray, ContextMenu, or Popup — so a MenuEvent
consumer can tell which surface an activation came from (issue #51).
Assigned once, in the surface’s constructor, from a process-wide
AtomicU64 counter; every live surface has a distinct id, and ids are
issued in creation order.
Trait Implementations§
impl Copy for SurfaceId
impl Eq for SurfaceId
impl StructuralPartialEq for SurfaceId
Auto Trait Implementations§
impl Freeze for SurfaceId
impl RefUnwindSafe for SurfaceId
impl Send for SurfaceId
impl Sync for SurfaceId
impl Unpin for SurfaceId
impl UnsafeUnpin for SurfaceId
impl UnwindSafe for SurfaceId
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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