pub struct BatchVerifier { /* private fields */ }Expand description
Batch verifier
Implementations§
Source§impl BatchVerifier
impl BatchVerifier
pub fn new() -> Self
Sourcepub fn batch_size(&self) -> usize
pub fn batch_size(&self) -> usize
Get the configured batch size.
Sourcepub fn set_batch_size(&mut self, size: usize)
pub fn set_batch_size(&mut self, size: usize)
Set the batch size.
Sourcepub fn parallel_verification(&self) -> bool
pub fn parallel_verification(&self) -> bool
Whether parallel verification is enabled.
Sourcepub fn set_parallel_verification(&mut self, enabled: bool)
pub fn set_parallel_verification(&mut self, enabled: bool)
Enable or disable parallel verification.
Sourcepub fn enqueue_verification(&mut self, verification: QueuedVerification)
pub fn enqueue_verification(&mut self, verification: QueuedVerification)
Enqueue a verification for batch processing.
Sourcepub fn dequeue_verification(&mut self) -> Option<QueuedVerification>
pub fn dequeue_verification(&mut self) -> Option<QueuedVerification>
Dequeue the next verification (FIFO order).
Auto Trait Implementations§
impl Freeze for BatchVerifier
impl RefUnwindSafe for BatchVerifier
impl Send for BatchVerifier
impl Sync for BatchVerifier
impl Unpin for BatchVerifier
impl UnsafeUnpin for BatchVerifier
impl UnwindSafe for BatchVerifier
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more