pub enum ValidationHandle {
Pending {
file_path: String,
expected_count: usize,
config: ValidationConfig,
},
Running {
file_path: String,
},
Completed {
file_path: String,
result: ValidationResult,
},
Failed {
file_path: String,
error: String,
},
Cancelled {
file_path: String,
reason: String,
},
TimedOut {
file_path: String,
timeout_duration: Duration,
},
}
Expand description
Validation handle for managing different validation states
This enum manages the lifecycle of async validation operations with proper Send + Sync bounds for thread safety.
Variants§
Pending
Validation is pending (not started yet)
Fields
§
config: ValidationConfig
Validation configuration
Running
Validation is running
Completed
Validation completed successfully
Failed
Validation failed with error
Cancelled
Validation was cancelled
TimedOut
Validation timed out
Trait Implementations§
Source§impl Debug for ValidationHandle
impl Debug for ValidationHandle
impl Send for ValidationHandle
impl Sync for ValidationHandle
Auto Trait Implementations§
impl Freeze for ValidationHandle
impl RefUnwindSafe for ValidationHandle
impl Unpin for ValidationHandle
impl UnwindSafe for ValidationHandle
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