Enum pwquality::Error
[−]
[src]
pub enum Error { FatalFailure, Integer, CfgfileOpen, CfgfileMalformed, UnknownSetting, NonIntSetting, NonStrSetting, MemAlloc, TooSimilar, MinDigits, MinUppers, MinLowers, MinOthers, MinLength, Palindrome, CaseChangesOnly, Rotated, MinClasses, MaxConsecutive, EmptyPassword, SamePassword, CracklibCheck, Rng, GenerationFailed, UserCheck, GecosCheck, MaxClassRepeat, BadWords, MaxSequence, UnknownError(i32), }
An error returned by the underlying library.
The UnknownError
should never be returned unless a new error
code is added in pwquality
.
Variants
FatalFailure
Integer
CfgfileOpen
CfgfileMalformed
UnknownSetting
NonIntSetting
NonStrSetting
MemAlloc
TooSimilar
MinDigits
MinUppers
MinLowers
MinOthers
MinLength
Palindrome
CaseChangesOnly
Rotated
MinClasses
MaxConsecutive
EmptyPassword
SamePassword
CracklibCheck
Rng
GenerationFailed
UserCheck
GecosCheck
MaxClassRepeat
BadWords
MaxSequence
UnknownError(i32)
Trait Implementations
impl Clone for Error
[src]
fn clone(&self) -> Error
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more