pub struct TeksiloWindowId(/* private fields */);Expand description
Opaque identifier for an application window.
Allocated by the app-level window manager when a window is created
and passed back to the app via WindowState::id
or the return value of window-opening APIs. IDs are Copy, unique
within a process, and never reused after a window closes.
Serialize/Deserialize so it can appear inside a persisted type
(e.g. teksilo_widgets::toast::ToastRoute::Window mirrored into an
archived NotificationEntry) — but note the id is NOT stable across
process restarts, only “unique within a process”: a persisted
window-scoped route from a previous run will not match any window
in the current one, which is the intended, accepted behaviour for
something that was inherently about a transient session’s window.
Implementations§
Trait Implementations§
Source§impl Clone for TeksiloWindowId
impl Clone for TeksiloWindowId
Source§fn clone(&self) -> TeksiloWindowId
fn clone(&self) -> TeksiloWindowId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TeksiloWindowId
Source§impl Debug for TeksiloWindowId
impl Debug for TeksiloWindowId
Source§impl<'de> Deserialize<'de> for TeksiloWindowId
impl<'de> Deserialize<'de> for TeksiloWindowId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TeksiloWindowId
impl Display for TeksiloWindowId
impl Eq for TeksiloWindowId
Source§impl Hash for TeksiloWindowId
impl Hash for TeksiloWindowId
Source§impl PartialEq for TeksiloWindowId
impl PartialEq for TeksiloWindowId
Source§impl Serialize for TeksiloWindowId
impl Serialize for TeksiloWindowId
impl StructuralPartialEq for TeksiloWindowId
Auto Trait Implementations§
impl Freeze for TeksiloWindowId
impl RefUnwindSafe for TeksiloWindowId
impl Send for TeksiloWindowId
impl Sync for TeksiloWindowId
impl Unpin for TeksiloWindowId
impl UnsafeUnpin for TeksiloWindowId
impl UnwindSafe for TeksiloWindowId
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