pub struct ComprehensiveDataDeduplicator { /* private fields */ }
Expand description
Comprehensive data deduplicator
Implementations§
Source§impl ComprehensiveDataDeduplicator
impl ComprehensiveDataDeduplicator
Sourcepub fn new(config: DeduplicationConfig) -> Self
pub fn new(config: DeduplicationConfig) -> Self
Create new comprehensive data deduplicator
Sourcepub fn deduplicate_string(
&self,
input: &str,
) -> TrackingResult<DeduplicatedString>
pub fn deduplicate_string( &self, input: &str, ) -> TrackingResult<DeduplicatedString>
Deduplicate a string using atomic operations for thread safety
Sourcepub fn get_string(
&self,
dedup_ref: &DeduplicatedString,
) -> TrackingResult<Arc<String>>
pub fn get_string( &self, dedup_ref: &DeduplicatedString, ) -> TrackingResult<Arc<String>>
Retrieve deduplicated string
Sourcepub fn deduplicate_stack_trace(
&self,
frames: &[StackFrame],
) -> TrackingResult<DeduplicatedStackTrace>
pub fn deduplicate_stack_trace( &self, frames: &[StackFrame], ) -> TrackingResult<DeduplicatedStackTrace>
Deduplicate a stack trace using atomic operations for thread safety
Sourcepub fn get_stack_trace(
&self,
dedup_ref: &DeduplicatedStackTrace,
) -> TrackingResult<Arc<Vec<StackFrame>>>
pub fn get_stack_trace( &self, dedup_ref: &DeduplicatedStackTrace, ) -> TrackingResult<Arc<Vec<StackFrame>>>
Retrieve deduplicated stack trace
Sourcepub fn deduplicate_metadata(
&self,
metadata: &HashMap<String, String>,
) -> TrackingResult<DeduplicatedMetadata>
pub fn deduplicate_metadata( &self, metadata: &HashMap<String, String>, ) -> TrackingResult<DeduplicatedMetadata>
Deduplicate metadata using atomic operations for thread safety
Sourcepub fn get_metadata(
&self,
dedup_ref: &DeduplicatedMetadata,
) -> TrackingResult<Arc<HashMap<String, String>>>
pub fn get_metadata( &self, dedup_ref: &DeduplicatedMetadata, ) -> TrackingResult<Arc<HashMap<String, String>>>
Retrieve deduplicated metadata
Sourcepub fn get_stats(&self) -> TrackingResult<DeduplicationStats>
pub fn get_stats(&self) -> TrackingResult<DeduplicationStats>
Get deduplication statistics
Auto Trait Implementations§
impl Freeze for ComprehensiveDataDeduplicator
impl !RefUnwindSafe for ComprehensiveDataDeduplicator
impl Send for ComprehensiveDataDeduplicator
impl Sync for ComprehensiveDataDeduplicator
impl Unpin for ComprehensiveDataDeduplicator
impl UnwindSafe for ComprehensiveDataDeduplicator
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> 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