#[repr(i32)]pub enum ErrorCode {
Show 29 variants
Success = 0,
Error = -1,
InvalidParam = -2,
BufferSmall = -3,
DeviceNotFound = -4,
DeviceBusy = -5,
DeviceError = -6,
OutOfMemory = -7,
NotSupported = -8,
AuthRequired = -9,
AuthFailed = -10,
KeyNotFound = -11,
InvalidKey = -12,
VerificationFailed = -13,
DecapsFailed = -14,
HardwareUnavail = -15,
Timeout = -16,
NotInitialized = -17,
AlreadyInit = -18,
InvalidHandle = -19,
Cancelled = -20,
EntropyDepleted = -21,
SelfTestFailed = -22,
TamperDetected = -23,
Temperature = -24,
Power = -25,
InvalidAlgorithm = -26,
CryptoError = -27,
InternalError = -99,
}Expand description
Error codes returned by QUAC 100 operations.
These map directly to the native library’s error codes.
Variants§
Success = 0
Operation completed successfully
Error = -1
Generic error
InvalidParam = -2
Invalid parameter
BufferSmall = -3
Output buffer too small
DeviceNotFound = -4
No QUAC 100 device found
DeviceBusy = -5
Device is busy
DeviceError = -6
Device error
OutOfMemory = -7
Memory allocation failed
NotSupported = -8
Operation not supported
AuthRequired = -9
Authentication required
AuthFailed = -10
Authentication failed
KeyNotFound = -11
Key not found
InvalidKey = -12
Invalid key
VerificationFailed = -13
Signature verification failed
DecapsFailed = -14
Decapsulation failed
Hardware acceleration unavailable
Timeout = -16
Operation timed out
NotInitialized = -17
Library not initialized
AlreadyInit = -18
Library already initialized
InvalidHandle = -19
Invalid handle
Cancelled = -20
Operation cancelled
EntropyDepleted = -21
Entropy pool depleted
SelfTestFailed = -22
Self-test failed
TamperDetected = -23
Tamper detected
Temperature = -24
Temperature error
Power = -25
Power supply error
InvalidAlgorithm = -26
Invalid algorithm
CryptoError = -27
Cryptographic operation error
InternalError = -99
Internal error
Implementations§
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)