pub enum SopsEncryptError {
EmptyPublicKey,
ParseRecipient(String),
EncryptValue(String),
EncryptMac(String),
WrapDataKey(String),
Marshal(String),
}Expand description
Errors returned by encrypt_for_secret.
Variants§
EmptyPublicKey
encrypt_for_secret was called with an empty public key.
ParseRecipient(String)
The supplied public key is not a parseable age (X25519) recipient.
EncryptValue(String)
Encrypting the value leaf failed.
EncryptMac(String)
Encrypting the MAC failed.
WrapDataKey(String)
Wrapping the data key to the age recipient failed.
Marshal(String)
Serializing the SOPS document to YAML failed.
Trait Implementations§
Source§impl Debug for SopsEncryptError
impl Debug for SopsEncryptError
Source§impl Display for SopsEncryptError
impl Display for SopsEncryptError
Source§impl Error for SopsEncryptError
impl Error for SopsEncryptError
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 SopsEncryptError
impl RefUnwindSafe for SopsEncryptError
impl Send for SopsEncryptError
impl Sync for SopsEncryptError
impl Unpin for SopsEncryptError
impl UnsafeUnpin for SopsEncryptError
impl UnwindSafe for SopsEncryptError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request