pub struct PerformanceAnalyzer { /* private fields */ }Expand description
In-memory profile catalog with pure comparison helpers.
Implementations§
Source§impl PerformanceAnalyzer
impl PerformanceAnalyzer
pub fn new() -> Self
Sourcepub fn record_profile(
&mut self,
profile: ScanProfile,
) -> Result<Option<ScanProfile>, ScanProfile>
pub fn record_profile( &mut self, profile: ScanProfile, ) -> Result<Option<ScanProfile>, ScanProfile>
Records a validated profile, returning the rejected record on failure.
pub fn get_profile(&self, scan_id: &str) -> Option<&ScanProfile>
pub fn get_profiles(&self) -> Vec<&ScanProfile>
pub fn compare(&self, first_id: &str, second_id: &str) -> Option<ScanComparison>
pub fn profile_count(&self) -> usize
Trait Implementations§
Source§impl Clone for PerformanceAnalyzer
impl Clone for PerformanceAnalyzer
Source§fn clone(&self) -> PerformanceAnalyzer
fn clone(&self) -> PerformanceAnalyzer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PerformanceAnalyzer
impl Debug for PerformanceAnalyzer
Source§impl Default for PerformanceAnalyzer
impl Default for PerformanceAnalyzer
Source§fn default() -> PerformanceAnalyzer
fn default() -> PerformanceAnalyzer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PerformanceAnalyzer
impl RefUnwindSafe for PerformanceAnalyzer
impl Send for PerformanceAnalyzer
impl Sync for PerformanceAnalyzer
impl Unpin for PerformanceAnalyzer
impl UnsafeUnpin for PerformanceAnalyzer
impl UnwindSafe for PerformanceAnalyzer
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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