pub trait LanguagePreferenceStore: Send + Sync {
// Required methods
fn load(&self) -> Result<Option<String>, LocalizationError>;
fn save(&self, value: &str) -> Result<(), LocalizationError>;
}Expand description
An application’s storage adapter for its language preference. Native UI providers call these methods on a worker so storage cannot block a frame.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".