SecretExt

Trait SecretExt 

Source
pub(crate) trait SecretExt {
    // Required methods
    async fn restore_sessions() -> Result<Vec<StoredSession>, SecretError>;
    async fn store_session(session: StoredSession) -> Result<(), SecretError>;
    async fn delete_session(session: &StoredSession);
}
Expand description

Trait implemented by secret backends.

Required Methods§

Source

async fn restore_sessions() -> Result<Vec<StoredSession>, SecretError>

Retrieves all sessions stored in the secret backend.

Source

async fn store_session(session: StoredSession) -> Result<(), SecretError>

Store the given session into the secret backend, overwriting any previously stored session with the same attributes.

Source

async fn delete_session(session: &StoredSession)

Delete the given session from the secret backend.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§