pub trait AuthStorageBackend: Send + Sync {
// Required methods
fn read(&self) -> Result<Option<String>, AuthError>;
fn write(&self, data: &str) -> Result<(), AuthError>;
fn delete(&self) -> Result<(), AuthError>;
}Expand description
Storage backend trait
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".