pub struct AsyncValidator { /* private fields */ }
Expand description
Async validator for deferred validation operations
Implementations§
Source§impl AsyncValidator
impl AsyncValidator
Sourcepub fn new(config: ValidationConfig) -> Self
pub fn new(config: ValidationConfig) -> Self
Create new async validator
Sourcepub fn new_default() -> Self
pub fn new_default() -> Self
Create async validator with default configuration
Sourcepub async fn validate_file_async<P: AsRef<Path>>(
&mut self,
file_path: P,
) -> TrackingResult<ValidationResult>
pub async fn validate_file_async<P: AsRef<Path>>( &mut self, file_path: P, ) -> TrackingResult<ValidationResult>
Async file validation method that returns a Future
Sourcepub async fn validate_content_stream<P: AsRef<Path>>(
&self,
file_path: P,
issues: &mut Vec<ValidationIssue>,
) -> TrackingResult<()>
pub async fn validate_content_stream<P: AsRef<Path>>( &self, file_path: P, issues: &mut Vec<ValidationIssue>, ) -> TrackingResult<()>
Stream-based content validation for large files
Sourcepub fn create_enhanced_streaming_validator(
&self,
streaming_config: StreamingValidationConfig,
) -> EnhancedStreamingValidator
pub fn create_enhanced_streaming_validator( &self, streaming_config: StreamingValidationConfig, ) -> EnhancedStreamingValidator
Create enhanced streaming validator for large file validation
Sourcepub async fn validate_file_with_streaming<P: AsRef<Path>>(
&mut self,
file_path: P,
streaming_config: Option<StreamingValidationConfig>,
progress_callback: Option<Box<dyn Fn(&ValidationProgress) + Send + Sync>>,
) -> TrackingResult<ValidationResult>
pub async fn validate_file_with_streaming<P: AsRef<Path>>( &mut self, file_path: P, streaming_config: Option<StreamingValidationConfig>, progress_callback: Option<Box<dyn Fn(&ValidationProgress) + Send + Sync>>, ) -> TrackingResult<ValidationResult>
Validate file using enhanced streaming with progress reporting
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AsyncValidator
impl RefUnwindSafe for AsyncValidator
impl Send for AsyncValidator
impl Sync for AsyncValidator
impl Unpin for AsyncValidator
impl UnwindSafe for AsyncValidator
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