Enum zbox::OpsLimit [] [src]

pub enum OpsLimit {
    Interactive,
    Moderate,
    Sensitive,
}

Password hash operation limit.

It represents a maximum amount of computations to perform. Higher level will require more CPU cycles to compute.

See https://download.libsodium.org/doc/password_hashing/ for more details.

Variants

Trait Implementations

impl Debug for OpsLimit
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for OpsLimit
[src]

impl Clone for OpsLimit
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for OpsLimit
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Default for OpsLimit
[src]

[src]

Returns the "default value" for a type. Read more

impl Into<i32> for OpsLimit
[src]

[src]

Performs the conversion.

impl From<i32> for OpsLimit
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for OpsLimit

impl Sync for OpsLimit