pub struct BatchPatternDetector { /* private fields */ }Expand description
Batch pattern detector for multiple memory areas
Implementations§
Source§impl BatchPatternDetector
impl BatchPatternDetector
Sourcepub fn new(base_config: PatternConfig) -> Self
pub fn new(base_config: PatternConfig) -> Self
Create a new batch pattern detector
Sourcepub fn get_detector(
&self,
memory_area_idx: u32,
temporal_depth: u32,
) -> PatternDetector
pub fn get_detector( &self, memory_area_idx: u32, temporal_depth: u32, ) -> PatternDetector
Get or create detector for memory area
Sourcepub fn get_batch_stats(&self) -> HashMap<u32, PatternDetectorStats>
pub fn get_batch_stats(&self) -> HashMap<u32, PatternDetectorStats>
Get statistics for all detectors
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BatchPatternDetector
impl RefUnwindSafe for BatchPatternDetector
impl Send for BatchPatternDetector
impl Sync for BatchPatternDetector
impl Unpin for BatchPatternDetector
impl UnsafeUnpin for BatchPatternDetector
impl UnwindSafe for BatchPatternDetector
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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