pub struct ParallelExecutionTracker { /* private fields */ }Implementations§
Source§impl ParallelExecutionTracker
impl ParallelExecutionTracker
pub fn new() -> Self
pub fn start_session( &mut self, _session_id: ProfilingSessionId, ) -> Result<(), QuantRS2Error>
pub fn record_parallel_operation(&mut self, _operation_type: &str)
pub fn detect_optimizations(&self, _duration: &Duration) -> Vec<String>
pub fn detected_parallel_benefit(&self) -> bool
pub fn get_parallel_operations_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParallelExecutionTracker
impl RefUnwindSafe for ParallelExecutionTracker
impl Send for ParallelExecutionTracker
impl Sync for ParallelExecutionTracker
impl Unpin for ParallelExecutionTracker
impl UnwindSafe for ParallelExecutionTracker
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
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