Skip to main content

AuthStorage

Trait AuthStorage 

Source
pub trait AuthStorage<T>: Send + Sync{
    // Required methods
    fn load(&self) -> Result<Option<T>>;
    fn save(&self, value: T) -> Result<()>;
    fn clear(&self) -> Result<()>;
    fn path(&self) -> String;
}

Required Methods§

Source

fn load(&self) -> Result<Option<T>>

Source

fn save(&self, value: T) -> Result<()>

Source

fn clear(&self) -> Result<()>

Source

fn path(&self) -> String

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§