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§
fn load(&self) -> Result<Option<T>>
fn save(&self, value: T) -> Result<()>
fn clear(&self) -> Result<()>
fn path(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".