Enum wasi_crypto::CryptoError
source · pub enum CryptoError {
Show 30 variants
Success,
GuestError(Error),
NotImplemented,
UnsupportedFeature,
ProhibitedOperation,
UnsupportedEncoding,
UnsupportedAlgorithm,
UnsupportedOption,
InvalidKey,
InvalidLength,
VerificationFailed,
RNGError,
AlgorithmFailure,
InvalidSignature,
Closed,
InvalidHandle,
Overflow,
InternalError,
TooManyHandles,
KeyNotSupported,
KeyRequired,
InvalidTag,
InvalidOperation,
NonceRequired,
InvalidNonce,
OptionNotSet,
NotFound,
ParametersMissing,
IncompatibleKeys,
Expired,
}
Variants§
Success
GuestError(Error)
NotImplemented
UnsupportedFeature
ProhibitedOperation
UnsupportedEncoding
UnsupportedAlgorithm
UnsupportedOption
InvalidKey
InvalidLength
VerificationFailed
RNGError
AlgorithmFailure
InvalidSignature
Closed
InvalidHandle
Overflow
InternalError
TooManyHandles
KeyNotSupported
KeyRequired
InvalidTag
InvalidOperation
NonceRequired
InvalidNonce
OptionNotSet
NotFound
ParametersMissing
IncompatibleKeys
Expired
Trait Implementations§
source§impl Debug for CryptoError
impl Debug for CryptoError
source§impl Display for CryptoError
impl Display for CryptoError
source§impl Error for CryptoError
impl Error for CryptoError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for CryptoError
impl From<Error> for CryptoError
source§impl From<TryFromIntError> for CryptoError
impl From<TryFromIntError> for CryptoError
source§fn from(_: TryFromIntError) -> Self
fn from(_: TryFromIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for CryptoError
impl Send for CryptoError
impl Sync for CryptoError
impl Unpin for CryptoError
impl UnwindSafe for CryptoError
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