pub struct HashPerformanceOptimizer { /* private fields */ }Expand description
Hash performance optimizer
Implementations§
Source§impl HashPerformanceOptimizer
impl HashPerformanceOptimizer
Sourcepub fn initialize(&mut self) -> Result<(), CryptographicError>
pub fn initialize(&mut self) -> Result<(), CryptographicError>
No-op returning Ok(()).
Sourcepub fn optimization_strategies(&self) -> &[HashOptimizationStrategy]
pub fn optimization_strategies(&self) -> &[HashOptimizationStrategy]
Get the configured optimization strategies.
Sourcepub fn add_optimization_strategy(&mut self, strategy: HashOptimizationStrategy)
pub fn add_optimization_strategy(&mut self, strategy: HashOptimizationStrategy)
Add an optimization strategy if not already present.
Sourcepub fn record_hash_time(&mut self, duration_ms: f64)
pub fn record_hash_time(&mut self, duration_ms: f64)
Record a hash computation duration (milliseconds).
Sourcepub fn metrics(&self) -> &HashPerformanceMetrics
pub fn metrics(&self) -> &HashPerformanceMetrics
Get a snapshot of the current performance metrics.
Auto Trait Implementations§
impl Freeze for HashPerformanceOptimizer
impl RefUnwindSafe for HashPerformanceOptimizer
impl Send for HashPerformanceOptimizer
impl Sync for HashPerformanceOptimizer
impl Unpin for HashPerformanceOptimizer
impl UnsafeUnpin for HashPerformanceOptimizer
impl UnwindSafe for HashPerformanceOptimizer
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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