pub enum ConversionError {
FileNotFound(String),
FileRead(String, Error),
InvalidFormat(String),
Authentication(String),
DirectoryCreation(String, Error),
FileWrite(String, Error),
Ssl(ErrorStack),
}Variants§
FileNotFound(String)
File not found or cannot be read
FileRead(String, Error)
Failed to read file contents
InvalidFormat(String)
Invalid PFX/P12 file format
Authentication(String)
Wrong password or password required
DirectoryCreation(String, Error)
Failed to create output directory
FileWrite(String, Error)
Failed to write output file
Ssl(ErrorStack)
OpenSSL error during conversion
Trait Implementations§
Source§impl Debug for ConversionError
impl Debug for ConversionError
Source§impl Display for ConversionError
impl Display for ConversionError
Source§impl Error for ConversionError
impl Error for ConversionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ErrorStack> for ConversionError
impl From<ErrorStack> for ConversionError
Source§fn from(err: ErrorStack) -> Self
fn from(err: ErrorStack) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConversionError
impl !RefUnwindSafe for ConversionError
impl Send for ConversionError
impl Sync for ConversionError
impl Unpin for ConversionError
impl !UnwindSafe for ConversionError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more