FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SettingsService

    struct · ferroui-protranslate-studio · v0.5.0

    struct SettingsService
    

    View source

    Members

    new

    fn new(storage: Rc<dyn StudioStorage>, path: impl Into<String>) -> Self
    

    Source

    path

    fn path(self: &Self) -> &str
    

    Source

    load

    fn load(self: &Self) -> Result<Option<StudioSettings>, StudioError>
    

    Source

    load_or_default

    fn load_or_default(self: &Self) -> SettingsLoad
    

    Corrupt settings are preserved and surfaced alongside usable defaults.

    Source

    save

    fn save(self: &Self, settings: &StudioSettings) -> Result<(), StudioError>
    

    Source

    save_with_credentials

    fn save_with_credentials(self: &Self, settings: &StudioSettings, credentials: CredentialPersistence) -> Result<(), StudioError>
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.