#[repr(i32)]pub enum ErrorCode {
Show 35 variants
OutputPtrNull = -1,
OutputTooShort = -2,
OutputTooLong = -3,
PwdTooShort = -4,
PwdTooLong = -5,
SaltTooShort = -6,
SaltTooLong = -7,
AdTooShort = -8,
AdTooLong = -9,
SecretTooShort = -10,
SecretTooLong = -11,
TimeTooSmall = -12,
TimeTooLarge = -13,
MemoryTooLittle = -14,
MemoryTooMuch = -15,
LanesTooFew = -16,
LanesTooMany = -17,
PwdPtrMismatch = -18,
SaltPtrMismatch = -19,
SecretPtrMismatch = -20,
AdPtrMismatch = -21,
MemoryAllocationError = -22,
FreeMemoryCbkNull = -23,
AllocateMemoryCbkNull = -24,
IncorrectParameter = -25,
IncorrectType = -26,
OutPtrMismatch = -27,
ThreadsTooFew = -28,
ThreadsTooMany = -29,
MissingArgs = -30,
EncodingFail = -31,
DecodingFail = -32,
ThreadFail = -33,
DecodingLengthFail = -34,
VerifyMismatch = -35,
}
Expand description
Error code returned by failed Argon2 C functions.
Variants§
OutputPtrNull = -1
OutputTooShort = -2
OutputTooLong = -3
PwdTooShort = -4
PwdTooLong = -5
SaltTooShort = -6
SaltTooLong = -7
AdTooShort = -8
AdTooLong = -9
SecretTooShort = -10
SecretTooLong = -11
TimeTooSmall = -12
TimeTooLarge = -13
MemoryTooLittle = -14
MemoryTooMuch = -15
LanesTooFew = -16
LanesTooMany = -17
PwdPtrMismatch = -18
SaltPtrMismatch = -19
SecretPtrMismatch = -20
AdPtrMismatch = -21
MemoryAllocationError = -22
FreeMemoryCbkNull = -23
AllocateMemoryCbkNull = -24
IncorrectParameter = -25
IncorrectType = -26
OutPtrMismatch = -27
ThreadsTooFew = -28
ThreadsTooMany = -29
MissingArgs = -30
EncodingFail = -31
DecodingFail = -32
ThreadFail = -33
DecodingLengthFail = -34
VerifyMismatch = -35
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§
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