Enum argon2::ThreadMode
source · pub enum ThreadMode {
Sequential,
Parallel,
}
Expand description
The thread mode used to perform the hashing.
Variants§
Implementations§
source§impl ThreadMode
impl ThreadMode
sourcepub fn from_threads(threads: u32) -> ThreadMode
pub fn from_threads(threads: u32) -> ThreadMode
Create a thread mode from the threads count.
Trait Implementations§
source§impl Clone for ThreadMode
impl Clone for ThreadMode
source§fn clone(&self) -> ThreadMode
fn clone(&self) -> ThreadMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ThreadMode
impl Debug for ThreadMode
source§impl Default for ThreadMode
impl Default for ThreadMode
source§fn default() -> ThreadMode
fn default() -> ThreadMode
Returns the “default value” for a type. Read more
source§impl PartialEq<ThreadMode> for ThreadMode
impl PartialEq<ThreadMode> for ThreadMode
source§fn eq(&self, other: &ThreadMode) -> bool
fn eq(&self, other: &ThreadMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ThreadMode
impl Eq for ThreadMode
impl StructuralEq for ThreadMode
impl StructuralPartialEq for ThreadMode
Auto Trait Implementations§
impl RefUnwindSafe for ThreadMode
impl Send for ThreadMode
impl Sync for ThreadMode
impl Unpin for ThreadMode
impl UnwindSafe for ThreadMode
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more