Skip to content

ReadGuard

Functions

  • load - Reads the saved connection and its secret, or None when there is

firma_connection_store::store::ReadGuard::load

Section titled “firma_connection_store::store::ReadGuard::load”

Function

Reads the saved connection and its secret, or None when there is none.

Returns [StoreError::CorruptConnection] for an invalid file, [StoreError::SecretMissing] when its native credential is gone, [StoreError::PlaintextFileUnsupported] for a file secret outside Unix, and credential-store or filesystem errors.

fn load(self: &Self) -> Result<Option<SavedConnection>, StoreError>