error
Module: error
Section titled “Module: error”Contents
Section titled “Contents”Enums
NativeFailure- A credential-store failure, stripped of any payload that could holdStoreError- Why a connection could not be loaded, saved or removed.
firma_connection_store::error::NativeFailure
Section titled “firma_connection_store::error::NativeFailure”Enum
A credential-store failure, stripped of any payload that could hold secret bytes.
Variants:
BadData- The stored credential is not valid text.Other(String)- Any other failure, described by the platform.
Traits: Eq, Error
Trait Implementations:
- PartialEq
fn eq(self: &Self, other: &Self) -> bool
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Clone
fn clone(self: &Self) -> Self
- Display
fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result
firma_connection_store::error::StoreError
Section titled “firma_connection_store::error::StoreError”Enum
Why a connection could not be loaded, saved or removed.
No variant, in any rendering or source chain, carries secret bytes.
Variants:
NoConfigDirectory- NeitherFIRMA_CONNECTION_DIRnor a per-user configuration directoryRelativeDirectory{ path: std::path::PathBuf }- The connection directory is a relative path, which would change withUnprotectedPath{ path: std::path::PathBuf }- The directory or one of its files is a symlink, is not the expectedIo{ action: &'static str, path: std::path::PathBuf, source: std::io::Error }- A filesystem operation failed.Lock{ path: std::path::PathBuf, source: std::io::Error }- The connection lock could not be taken.Randomness(Box<dyn std::error::Error>)- The operating system could not supply randomness for a connection id.Encode(Box<dyn std::error::Error>)- The connection could not be serialized.CorruptConnection{ path: std::path::PathBuf, reason: String }- The saved connection file is not a valid version 1 record.RecordTooLarge- The connection record exceeds the supported size limit.NativeStorageUnavailable{ reason: String }- The operating system credential store cannot be used here.Native(NativeFailure)- The operating system credential store refused an operation.SecretMissing- The saved connection refers to a credential that no longer exists.PlaintextFileUnsupported- Storing or reading a secret in a file is not supported on this
Trait Implementations:
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Display
fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result
- Error
fn source(self: &Self) -> ::core::option::Option<&dyn ::thiserror::__private21::Error>