Skip to main content

AppHandleExt

Trait AppHandleExt 

Source
pub trait AppHandleExt {
    // Required methods
    fn save_window_state(&self, flags: StateFlags) -> Result<()>;
    fn filename(&self) -> String;
}

Required Methods§

Source

fn save_window_state(&self, flags: StateFlags) -> Result<()>

Saves all open windows state to disk

Source

fn filename(&self) -> String

Get the name of the file used to store window state.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<R: Runtime> AppHandleExt for AppHandle<R>

Implementors§