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 a value

Source

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

Write a value

Source

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

Delete a value

Implementors§