pub trait ValidatorSync: Send + Sync {
// Required method
fn validate(
&self,
context: Arc<ValidationContext>,
) -> Result<ValidationReport>;
}Expand description
The same contract as ValidatorAsync for validators that need no I/O beyond the filesystem,
so the common case runs on plain threads and no Tokio runtime has to be started if no async
validators are involved.
Required Methods§
fn validate(&self, context: Arc<ValidationContext>) -> Result<ValidationReport>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".