pub struct EguiConfig {
pub starting_points_window: Rect,
pub open_dirs: HashMap<PathBuf, Rect>,
}Fields§
§starting_points_window: Rect§open_dirs: HashMap<PathBuf, Rect>Trait Implementations§
Source§impl Clone for EguiConfig
impl Clone for EguiConfig
Source§fn clone(&self) -> EguiConfig
fn clone(&self) -> EguiConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Config for EguiConfig
impl Config for EguiConfig
Source§const FILE_SLUG: &'static str = "egui_ui_state"
const FILE_SLUG: &'static str = "egui_ui_state"
Unique slug (used for generating the filename).
Source§fn config_path() -> PathBuf
fn config_path() -> PathBuf
Compute the file path where this config is stored.
Source§fn load<'async_trait>() -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
fn load<'async_trait>() -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
Asynchronously load the configuration with incremental upgrading.
Source§fn save<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn save<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Asynchronously save the configuration.
fn modify_and_save<'life0, 'async_trait, F>( &'life0 mut self, f: F, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
Source§impl Debug for EguiConfig
impl Debug for EguiConfig
Source§impl Default for EguiConfig
impl Default for EguiConfig
Source§impl<'de> Deserialize<'de> for EguiConfig
impl<'de> Deserialize<'de> for EguiConfig
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 PartialEq for EguiConfig
impl PartialEq for EguiConfig
Source§impl Serialize for EguiConfig
impl Serialize for EguiConfig
impl StructuralPartialEq for EguiConfig
Auto Trait Implementations§
impl Freeze for EguiConfig
impl RefUnwindSafe for EguiConfig
impl Send for EguiConfig
impl Sync for EguiConfig
impl Unpin for EguiConfig
impl UnwindSafe for EguiConfig
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