FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    StudioStorage

    trait · ferroui-protranslate-studio · v0.5.0

    trait StudioStorage
    

    Relative paths are scoped by the host's storage instance. Writes are atomic: errors must leave the old destination intact. Missing files are Ok(None).

    View source

    Members

    read

    fn read(self: &Self, path: &str) -> Result<Option<Vec<u8>>, StudioError>
    

    Source

    write_atomic

    fn write_atomic(self: &Self, path: &str, bytes: &[u8]) -> Result<(), StudioError>
    

    Source

    write_new_atomic

    fn write_new_atomic(self: &Self, path: &str, bytes: &[u8]) -> Result<bool, StudioError>
    

    Atomically create a complete file only if absent; false never replaces it.

    Source

    remove

    fn remove(self: &Self, path: &str) -> Result<(), StudioError>
    

    Source

    list

    fn list(self: &Self, directory: &str) -> Result<Vec<StorageEntry>, StudioError>
    

    Source

    Trait implementations

    Availability

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