[−][src]Struct zxcvbn::Entropy
Contains the results of an entropy calculation
Implementations
impl Entropy
[src]
pub fn guesses(&self) -> u64
[src]
The estimated number of guesses needed to crack the password.
pub fn guesses_log10(&self) -> f64
[src]
The order of magnitude of guesses
.
pub fn crack_times(&self) -> CrackTimes
[src]
List of back-of-the-envelope crack time estimations based on a few scenarios.
pub fn score(&self) -> u8
[src]
Overall strength score from 0-4. Any score less than 3 should be considered too weak.
pub fn feedback(&self) -> &Option<Feedback>
[src]
Feedback to help choose better passwords. Set when score
<= 2.
pub fn sequence(&self) -> &[Match]
[src]
The list of patterns the guess calculation was based on
pub fn calculation_time(&self) -> Duration
[src]
How long it took to calculate the answer.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Entropy
[src]
impl Send for Entropy
[src]
impl Sync for Entropy
[src]
impl Unpin for Entropy
[src]
impl UnwindSafe for Entropy
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,