ssh_auth_podman_push 1.1.14

Store and use encrypted docker-hub secret_token with SSH key
Documentation
// error_mod.rs

//! Error library for this crate using thiserror
//!
//! I am using the crate thiserror to create an enum for all library errors.  
//! It mostly forwards the source "from" error.  
//! The library never writes to the screen, because it contains only the logic.  
//! Is the bin project that knows if it is CLI, TUI or GUI and it presents the errors to the user and developer.  
//! Then in the bin project I use the crate anyhow.  

/// Enum of possible errors from this library
#[derive(thiserror::Error, Debug)]
pub enum LibError {
    #[error("InfallibleError: {0}")]
    InfallibleError(#[from] std::convert::Infallible),

    #[error("StdIoError: {0}")]
    StdIoError(#[from] std::io::Error),

    #[error("ParseIntError: {0}")]
    ParseIntError(#[from] std::num::ParseIntError),

    #[allow(dead_code)]
    #[error("{0}")]
    ErrorFromString(String),

    #[allow(dead_code)]
    #[error("{0}")]
    ErrorFromStr(&'static str),
    //#[error("unknown error")]
    //UnknownError,
}

/// Result type alias with fixed LibError using thiserror
///
/// It makes simpler to write returns from functions.
#[allow(dead_code)]
pub type ResultWithLibError<T, E = LibError> = core::result::Result<T, E>;