pub enum SealedEnvError {
MissingVar(String),
MissingKey(String),
NotEncrypted(String),
Crypto(String),
}Expand description
Errors returned by sealed-env.
Variants§
MissingVar(String)
The requested environment variable is not set.
MissingKey(String)
SEALED_KEY is missing from the environment.
NotEncrypted(String)
The variable is set but does not start with ENCv1:.
Crypto(String)
Any cryptographic or decoding error.
Trait Implementations§
Source§impl Debug for SealedEnvError
impl Debug for SealedEnvError
Source§impl Display for SealedEnvError
impl Display for SealedEnvError
Source§impl Error for SealedEnvError
impl Error for SealedEnvError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for SealedEnvError
impl RefUnwindSafe for SealedEnvError
impl Send for SealedEnvError
impl Sync for SealedEnvError
impl Unpin for SealedEnvError
impl UnwindSafe for SealedEnvError
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