pub struct EnhancedStreamingValidator { /* private fields */ }
Expand description
Enhanced streaming validator with progress reporting and interruption support
Implementations§
Source§impl EnhancedStreamingValidator
impl EnhancedStreamingValidator
Sourcepub fn new(
config: ValidationConfig,
streaming_config: StreamingValidationConfig,
) -> Self
pub fn new( config: ValidationConfig, streaming_config: StreamingValidationConfig, ) -> Self
Create new enhanced streaming validator
Sourcepub fn set_progress_callback<F>(&mut self, callback: F)
pub fn set_progress_callback<F>(&mut self, callback: F)
Set progress callback function
Sourcepub fn is_interrupted(&self) -> bool
pub fn is_interrupted(&self) -> bool
Check if validation was interrupted
Sourcepub fn get_progress(&self) -> Option<&ValidationProgress>
pub fn get_progress(&self) -> Option<&ValidationProgress>
Get current validation progress
Sourcepub async fn save_checkpoint<P: AsRef<Path>>(
&self,
checkpoint_path: P,
) -> TrackingResult<()>
pub async fn save_checkpoint<P: AsRef<Path>>( &self, checkpoint_path: P, ) -> TrackingResult<()>
Save validation checkpoint
Sourcepub async fn load_checkpoint<P: AsRef<Path>>(
&mut self,
checkpoint_path: P,
) -> TrackingResult<()>
pub async fn load_checkpoint<P: AsRef<Path>>( &mut self, checkpoint_path: P, ) -> TrackingResult<()>
Load validation checkpoint
Sourcepub async fn validate_stream_async<R>(
&mut self,
reader: R,
total_size: Option<u64>,
) -> TrackingResult<ValidationResult>where
R: Read,
pub async fn validate_stream_async<R>(
&mut self,
reader: R,
total_size: Option<u64>,
) -> TrackingResult<ValidationResult>where
R: Read,
Enhanced streaming validation with AsyncRead support
Auto Trait Implementations§
impl Freeze for EnhancedStreamingValidator
impl !RefUnwindSafe for EnhancedStreamingValidator
impl Send for EnhancedStreamingValidator
impl Sync for EnhancedStreamingValidator
impl Unpin for EnhancedStreamingValidator
impl !UnwindSafe for EnhancedStreamingValidator
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