sos-migrate 0.17.1

Import and export for the Save Our Secrets SDK
Documentation
//! Error type for the keychain access module.
use thiserror::Error;

/// Error type for the keychain access module.
#[derive(Debug, Error)]
pub enum Error {
    /// Error generated if the name for a keychain could not
    /// be determined, no file stem.
    #[error("could not determine name for a keychain")]
    NoKeychainName,

    /// Error generated by the io library.
    #[error(transparent)]
    Io(#[from] std::io::Error),

    /// Error generated by the core library.
    #[error(transparent)]
    Core(#[from] sos_core::Error),

    /// Error generated by the vault library.
    #[error(transparent)]
    Vault(#[from] sos_vault::Error),

    /// Error generated by the utf8 conversion.
    #[error(transparent)]
    Utf8(#[from] std::str::Utf8Error),

    /// Error generated by the security framework.
    #[cfg(target_os = "macos")]
    #[error(transparent)]
    SecurityFramework(#[from] security_framework::base::Error),

    /// Error generated by the mpsc sender.
    #[error(transparent)]
    SendBool(#[from] std::sync::mpsc::SendError<bool>),
}