pub enum ObfuscatorError {
InvalidObfuscatedString,
UnsupportedVersion,
EncryptionError(String),
DecryptionError(String),
Base64Error(DecodeError),
RandomError(String),
}Expand description
Possible errors that can occur during obfuscation/unobfuscation
Variants§
InvalidObfuscatedString
The input string is not in a valid obfuscated format
UnsupportedVersion
The version of the obfuscation format is not supported
EncryptionError(String)
An error occurred during encryption
DecryptionError(String)
An error occurred during decryption
Base64Error(DecodeError)
An error occurred during base64 decoding
RandomError(String)
An error occurred with the random number generator
Trait Implementations§
Source§impl Debug for ObfuscatorError
impl Debug for ObfuscatorError
Source§impl Display for ObfuscatorError
impl Display for ObfuscatorError
Source§impl Error for ObfuscatorError
impl Error for ObfuscatorError
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<DecodeError> for ObfuscatorError
impl From<DecodeError> for ObfuscatorError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ObfuscatorError
impl RefUnwindSafe for ObfuscatorError
impl Send for ObfuscatorError
impl Sync for ObfuscatorError
impl Unpin for ObfuscatorError
impl UnwindSafe for ObfuscatorError
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