pub enum QuantaCipherError {
KeygenFailed,
EncapsulationFailed,
DecapsulationFailed,
EncryptionFailed,
DecryptionFailed,
InvalidPublicKeyLength,
InvalidPrivateKeyLength,
InvalidCiphertextLength,
InvalidPayloadFormat,
DecodeError(DecodeError),
Utf8Error(FromUtf8Error),
}Variants§
KeygenFailed
EncapsulationFailed
DecapsulationFailed
EncryptionFailed
DecryptionFailed
InvalidPublicKeyLength
InvalidPrivateKeyLength
InvalidCiphertextLength
InvalidPayloadFormat
DecodeError(DecodeError)
Utf8Error(FromUtf8Error)
Trait Implementations§
Source§impl Debug for QuantaCipherError
impl Debug for QuantaCipherError
Source§impl Display for QuantaCipherError
impl Display for QuantaCipherError
Source§impl Error for QuantaCipherError
impl Error for QuantaCipherError
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<DecodeError> for QuantaCipherError
impl From<DecodeError> for QuantaCipherError
Source§fn from(err: DecodeError) -> Self
fn from(err: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for QuantaCipherError
impl From<FromUtf8Error> for QuantaCipherError
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for QuantaCipherError
impl RefUnwindSafe for QuantaCipherError
impl Send for QuantaCipherError
impl Sync for QuantaCipherError
impl Unpin for QuantaCipherError
impl UnsafeUnpin for QuantaCipherError
impl UnwindSafe for QuantaCipherError
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