Skip to main content

AuthStorageBackend

Trait AuthStorageBackend 

Source
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§

Source

fn read(&self) -> Result<Option<String>, AuthError>

Read stored data

Source

fn write(&self, data: &str) -> Result<(), AuthError>

Write data

Source

fn delete(&self) -> Result<(), AuthError>

Delete stored data

Implementors§