Struct oxide_auth::primitives::generator::RandomGenerator[][src]

pub struct RandomGenerator { /* fields omitted */ }
Expand description

Generates tokens from random bytes.

Each byte is chosen randomly from the basic rand::thread_rng. This generator will always succeed.

Implementations

Generates tokens with a specific byte length.

Trait Implementations

For example sign the input parameters or generate a random token.

For example sign the input parameters or generate a random token.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.