Struct den::SignatureBuilder
source · pub struct SignatureBuilder { /* private fields */ }
Expand description
Builder of a Signature
.
Created using constructors on Signature
(e.g. Signature::with_algorithm
);
You Self::write
data and then Self::finish
to get a Signature
.
Implementations§
source§impl SignatureBuilder
impl SignatureBuilder
sourcepub fn parallel_write(&mut self, data: &[u8], wp: &WorkerPool)
pub fn parallel_write(&mut self, data: &[u8], wp: &WorkerPool)
Appends data to the hasher, hashing in parallel.
Useful when data
is large AND when block_size
is > 8*1024
.
This can be called multiple times to write the resource bit-by-bit.
sourcepub fn parallel_write_with_options(
&mut self,
data: &[u8],
wp: &WorkerPool,
data_size_threshold: usize,
block_size_threshold: usize
)
pub fn parallel_write_with_options( &mut self, data: &[u8], wp: &WorkerPool, data_size_threshold: usize, block_size_threshold: usize )
Trait Implementations§
source§impl Debug for SignatureBuilder
impl Debug for SignatureBuilder
Auto Trait Implementations§
impl Freeze for SignatureBuilder
impl RefUnwindSafe for SignatureBuilder
impl Send for SignatureBuilder
impl Sync for SignatureBuilder
impl Unpin for SignatureBuilder
impl UnwindSafe for SignatureBuilder
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