[][src]Trait chbs::component::traits::WordSetProvider

pub trait WordSetProvider: HasEntropy + Debug {
    fn words(&mut self) -> Vec<String>;
}

Something that provides sets of random words.

A component that provides functionallity to source a random set of passphrase words. On sourcing, an ordered list of random passphrase words is returned that will be used in the password.

This differs from WordProvider as this provides a set of words instead of a single word. It should be fairly easy to implement this trait on types that have the WordProvider implemented.

Required methods

fn words(&mut self) -> Vec<String>

Source a set of random passphrase words to use in a passphrase.

Loading content...

Implementors

impl<P> WordSetProvider for FixedWordSetProvider<P> where
    P: WordProvider
[src]

Loading content...