Skip to main content

ValidatorSync

Trait ValidatorSync 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§