Enum argon2::ThreadMode
[−]
[src]
pub enum ThreadMode {
Sequential,
Parallel,
}The thread mode used to perform the hashing.
Variants
SequentialRun in one thread.
ParallelRun in the same number of threads as the number of lanes.
Methods
impl ThreadMode[src]
fn from_threads(threads: u32) -> ThreadMode
Create a thread mode from the threads count.
Trait Implementations
impl Clone for ThreadMode[src]
fn clone(&self) -> ThreadMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Copy for ThreadMode[src]
impl Debug for ThreadMode[src]
impl Eq for ThreadMode[src]
impl PartialEq for ThreadMode[src]
fn eq(&self, __arg_0: &ThreadMode) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Default for ThreadMode[src]
fn default() -> ThreadMode
Returns the "default value" for a type. Read more