pub enum SaltlickError {
BadMagic,
DecryptionFailure,
Finalized,
Incomplete,
IncorrectKeyLength,
InvalidKeyFormat,
PublicKeyMismatch,
SecretKeyNotFound,
StateMachineErrored,
StreamStartFailure,
UnsupportedKeyAlgorithm,
UnsupportedVersion,
}Expand description
Saltlick errors.
Variants§
BadMagic
DecryptionFailure
Finalized
Incomplete
IncorrectKeyLength
InvalidKeyFormat
PublicKeyMismatch
SecretKeyNotFound
StateMachineErrored
StreamStartFailure
UnsupportedKeyAlgorithm
UnsupportedVersion
Trait Implementations§
Source§impl Clone for SaltlickError
impl Clone for SaltlickError
Source§fn clone(&self) -> SaltlickError
fn clone(&self) -> SaltlickError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SaltlickError
impl Debug for SaltlickError
Source§impl Display for SaltlickError
impl Display for SaltlickError
impl Eq for SaltlickError
Source§impl Error for SaltlickError
impl Error for SaltlickError
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()
Source§impl From<ASN1DecodeErr> for SaltlickError
impl From<ASN1DecodeErr> for SaltlickError
Source§fn from(_: ASN1DecodeErr) -> SaltlickError
fn from(_: ASN1DecodeErr) -> SaltlickError
Converts to this type from the input type.
Source§impl From<ASN1EncodeErr> for SaltlickError
impl From<ASN1EncodeErr> for SaltlickError
Source§fn from(_: ASN1EncodeErr) -> SaltlickError
fn from(_: ASN1EncodeErr) -> SaltlickError
Converts to this type from the input type.
Source§impl From<PemError> for SaltlickError
impl From<PemError> for SaltlickError
Source§fn from(_: PemError) -> SaltlickError
fn from(_: PemError) -> SaltlickError
Converts to this type from the input type.
Source§impl From<SaltlickError> for Error
impl From<SaltlickError> for Error
Source§fn from(e: SaltlickError) -> Error
fn from(e: SaltlickError) -> Error
Converts to this type from the input type.
Source§impl From<SaltlickError> for SaltlickKeyIoError
impl From<SaltlickError> for SaltlickKeyIoError
Source§fn from(source: SaltlickError) -> Self
fn from(source: SaltlickError) -> Self
Converts to this type from the input type.
Source§impl Hash for SaltlickError
impl Hash for SaltlickError
Source§impl PartialEq for SaltlickError
impl PartialEq for SaltlickError
Source§fn eq(&self, other: &SaltlickError) -> bool
fn eq(&self, other: &SaltlickError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SaltlickError
Auto Trait Implementations§
impl Freeze for SaltlickError
impl RefUnwindSafe for SaltlickError
impl Send for SaltlickError
impl Sync for SaltlickError
impl Unpin for SaltlickError
impl UnsafeUnpin for SaltlickError
impl UnwindSafe for SaltlickError
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