pub struct WindowRegistry { /* private fields */ }Implementations§
Source§impl WindowRegistry
impl WindowRegistry
pub fn new(state_store: WindowStateStore) -> Self
pub fn reserve_window( &self, label: &str, parent: Option<&str>, ) -> Result<WindowReservation, String>
pub fn insert_reserved( &self, descriptor: WindowDescriptor, ) -> Result<(), String>
Sourcepub fn upsert_live_window(
&self,
descriptor: WindowDescriptor,
) -> Result<bool, String>
pub fn upsert_live_window( &self, descriptor: WindowDescriptor, ) -> Result<bool, String>
Upserts a live window snapshot during bootstrap or runtime resync.
Repeated syncs are expected, so identical descriptors short-circuit without touching the persisted snapshot again.
pub fn insert(&self, descriptor: WindowDescriptor) -> Result<(), String>
pub fn remove(&self, label: &str) -> Result<Option<WindowDescriptor>, String>
pub fn get(&self, label: &str) -> Result<Option<WindowDescriptor>, String>
pub fn list(&self) -> Result<Vec<WindowDescriptor>, String>
pub fn child_labels_of(&self, parent: &str) -> Result<Vec<String>, String>
pub fn children_of(&self, parent: &str) -> Result<Vec<WindowDescriptor>, String>
pub fn restore_geometry(&self, label: &str) -> Option<WindowGeometry>
pub fn flush(&self) -> Result<(), String>
pub fn restore_tracked_windows(&self) -> Vec<WindowDescriptor>
Sourcepub fn purge_persisted_window(&self, label: &str) -> Result<bool, String>
pub fn purge_persisted_window(&self, label: &str) -> Result<bool, String>
Removes all persisted state for a label.
This is reserved for startup cleanup paths where a tracked window can no longer be restored and should not survive into the next launch.
pub fn remember_geometry( &self, label: &str, geometry: WindowGeometry, ) -> Result<bool, String>
pub fn begin_closing(&self, label: &str) -> Result<Option<ClosingGuard>, String>
Trait Implementations§
Source§impl Clone for WindowRegistry
impl Clone for WindowRegistry
Source§fn clone(&self) -> WindowRegistry
fn clone(&self) -> WindowRegistry
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 moreAuto Trait Implementations§
impl Freeze for WindowRegistry
impl RefUnwindSafe for WindowRegistry
impl Send for WindowRegistry
impl Sync for WindowRegistry
impl Unpin for WindowRegistry
impl UnsafeUnpin for WindowRegistry
impl UnwindSafe for WindowRegistry
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